Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
143
Issues
143
List
Boards
Labels
Service Desk
Milestones
Merge Requests
6
Merge Requests
6
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
emulab
emulab-devel
Commits
6a09dc9a
Commit
6a09dc9a
authored
Apr 25, 2009
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do vnode ops in sorted order.
parent
328b9c35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tmcd/linux/vnodectl
tmcd/linux/vnodectl
+6
-6
No files found.
tmcd/linux/vnodectl
View file @
6a09dc9a
...
...
@@ -322,7 +322,7 @@ if ($action eq 'reboot' || $action eq 'halt') {
@vnodes
=
keys
(
%vndb
);
}
foreach
my
$vnode
(
@vnodes
)
{
foreach
my
$vnode
(
sort
(
@vnodes
)
)
{
if
(
!
exists
(
$vndb
{
$vnode
})
||
!
exists
(
$vndb
{
$vnode
}{'
type
'}))
{
# this is a node that is not fully configured according to the db.
# we only make noise if it is one of the ones the user asked for.
...
...
@@ -347,7 +347,7 @@ elsif ($action eq 'kill') {
@vnodes
=
keys
(
%vndb
);
}
foreach
my
$vnode
(
@vnodes
)
{
foreach
my
$vnode
(
sort
(
@vnodes
)
)
{
if
(
!
exists
(
$vndb
{
$vnode
})
||
!
exists
(
$vndb
{
$vnode
}{'
type
'}))
{
# this is a node that is not fully configured according to the db.
# we only make noise if it is one of the ones the user asked for.
...
...
@@ -440,7 +440,7 @@ elsif ($action eq 'boot') {
TBDebugTimeStamp
("
finished
$vmtype
rootPreConfigNetwork
")
if
(
$debug
);
foreach
my
$vnode
(
@newvnodes
)
{
foreach
my
$vnode
(
sort
(
@newvnodes
)
)
{
my
(
$ret
,
$err
);
#
...
...
@@ -493,7 +493,7 @@ elsif ($action eq 'boot') {
}
if
(
$reconfig
)
{
foreach
my
$vnode
(
@oldvnodes
)
{
foreach
my
$vnode
(
sort
(
@oldvnodes
)
)
{
my
$vmid
=
$vndb
{
$vnode
}{'
id
'};
my
(
$ret
,
$err
);
...
...
@@ -540,7 +540,7 @@ elsif ($action eq 'boot') {
}
}
foreach
my
$vnode
(
@newvnodes
,
@oldvnodes
)
{
foreach
my
$vnode
(
sort
(
@newvnodes
,
@oldvnodes
)
)
{
my
$vmid
=
$vndb
{
$vnode
}{'
id
'};
next
if
(
safeLibOp
(
$vnode
,'
vnodeBoot
',
1
,
1
,
$vnode
,
$vmid
));
...
...
@@ -572,7 +572,7 @@ exit(0);
sub
teardownOldVnodes
()
{
print
"
Looking for old vnodes to tear down...
\n
";
foreach
my
$oldvnode
(
keys
(
%vndb
))
{
foreach
my
$oldvnode
(
sort
(
keys
(
%vndb
)
))
{
my
$found
=
0
;
foreach
my
$curvnode
(
@tmccvnodes
)
{
if
(
$curvnode
eq
$oldvnode
)
{
...
...
Write
Preview
Markdown
is supported
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