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
f919fe9c
Commit
f919fe9c
authored
Sep 24, 2009
by
Leigh B. Stoller
Browse files
Minor Protogeni cooked mode change; delete all slivers on swapout.
parent
d0b403f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswap.in
View file @
f919fe9c
...
...
@@ -45,6 +45,7 @@ my $piper = "$TBROOT/sbin/locpiper";
my
$mapper
=
"
$TBROOT
/bin/mapper
";
my
$wrapper
=
"
$TBROOT
/libexec/assign_wrapper
";
my
$NFSTRACESUPPORT
=
@NFSTRACESUPPORT@
;
my
$PGENISUPPORT
=
@PROTOGENI_SUPPORT@
;
# Untaint the path
$ENV
{'
PATH
'}
=
"
/usr/bin:
$TBROOT
/libexec:
$TBROOT
/libexec/ns2ir
"
.
...
...
@@ -64,8 +65,9 @@ use Experiment;
use
User
;
use
Lan
;
use
Firewall
;
#require exitonwarn; # exitonwarn isn't really a module, so just require it
if
(
$PGENISUPPORT
)
{
require
libGeni
;
}
#
# Actual swap-in and swap-out functions, defined below.
...
...
@@ -645,6 +647,16 @@ sub doSwapout($) {
return
1
;
}
#
# Clear away Geni slivers. Do not proceed if this fails.
#
if
(
$PGENISUPPORT
)
{
if
(
libGeni::
DeleteAllSlivers
(
$experiment
,
$this_user
))
{
tberror
("
Could not delete slivers
\n
");
return
1
;
}
}
#
# remove all nodes from the experiment.
# (nfree will send them to RES_FREE_DIRTY)
...
...
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