Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
b71908f3
Commit
b71908f3
authored
Jun 11, 2003
by
Mac Newbold
Browse files
If we're doing a forceswap or an idleswap (admin only options), pass -force to tbswap.
parent
c9d5cd3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/swapexp.in
View file @
b71908f3
...
...
@@ -411,8 +411,9 @@ if ($inout ne "restart" && -e $repfile) {
# Sanity check states in case someone changes something.
#
if
(
$inout
eq
"
out
")
{
if
(
$force
||
$idleswap
)
{
$arg
=
"
-force
";
}
else
{
$arg
=
"";
}
print
STDOUT
"
Running 'tbswap out' with arguments:
$pid
$eid
\n
";
if
(
system
("
$tbdir
/tbswap out
$pid
$eid
")
!=
0
)
{
if
(
system
("
$tbdir
/tbswap out
$arg
$pid
$eid
")
!=
0
)
{
$errorstat
=
$?
>>
8
;
fatal
("
tbswap out failed!
\n
");
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment