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-stable
Commits
9162ab78
Commit
9162ab78
authored
Dec 06, 2003
by
Robert Ricci
Browse files
Back out the maproot changes for now.
parent
b68d45cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/exports_setup.in
View file @
9162ab78
...
...
@@ -155,8 +155,7 @@ print MAP "\n";
# VIRTNODE HACK: Virtual nodes are special, so do not export. (isvirtnode).
#
$nodes_result
=
DBQueryFatal
("
select r.node_id,r.pid,r.eid,e.gid,i.IP,e.expt_head_uid
"
.
"
from reserved as r
"
.
DBQueryFatal
("
select r.node_id,r.pid,r.eid,e.gid,i.IP from reserved as r
"
.
"
left join experiments as e on r.pid=e.pid and r.eid=e.eid
"
.
"
left join nodes on r.node_id=nodes.node_id
"
.
"
left join node_types on node_types.type=nodes.type
"
.
...
...
@@ -168,7 +167,6 @@ $nodes_result =
"
order by r.pid,e.gid,r.eid,nodes.priority
");
my
%ipgroups
=
();
my
%maproot
=
();
my
%lastfslist
=
();
my
$lastpid
=
"";
my
$lastgid
=
"";
...
...
@@ -187,7 +185,6 @@ while (@row = $nodes_result->fetchrow_array) {
my
$eid
=
$row
[
2
];
my
$gid
=
$row
[
3
];
my
$ip
=
$row
[
4
];
my
$creator
=
$row
[
5
];
my
%fslist
=
();
my
@dirlist
=
();
...
...
@@ -257,7 +254,6 @@ while (@row = $nodes_result->fetchrow_array) {
if
(
!
defined
(
$ipgroups
{
$str
}))
{
$ipgroups
{
$str
}
=
[
$ip
];
$maproot
{
$str
}
=
$creator
;
}
else
{
push
(
@
{
$ipgroups
{
$str
}
},
$ip
);
...
...
@@ -269,10 +265,9 @@ while (@row = $nodes_result->fetchrow_array) {
# Now spit out each group!
#
foreach
my
$str
(
keys
(
%ipgroups
)
)
{
my
@iplist
=
@
{
$ipgroups
{
$str
}
};
my
$root
=
$maproot
{
$str
};
my
@iplist
=
@
{
$ipgroups
{
$str
}
};
print
MAP
"
$str
-maproot=
$
root
@iplist
\n
";
print
MAP
"
$str
-maproot=root
@iplist
\n
";
}
print
MAP
"
\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