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
3a334240
Commit
3a334240
authored
Apr 21, 2010
by
Leigh B Stoller
Browse files
Kill off TBIsNodeImageable()
parent
d40cfb93
Changes
1
Hide whitespace changes
Inline
Side-by-side
db/libdb.pm.in
View file @
3a334240
...
...
@@ -172,7 +172,7 @@ use vars qw(@ISA @EXPORT);
TBOSLoadMaxOkay TBImageLoadMaxOkay TBImageID
TBdbfork VnameToNodeid
TBIsNodeRemote
TBIsNodeImageable
TBIsNodeVirtual TBControlNetIP TBPhysNodeID
TBIsNodeVirtual TBControlNetIP TBPhysNodeID
TBNodeUpdateAccountsByPid TBNodeUpdateAccountsByType
TBNodeUpdateAccountsByUID
TBExptWorkDir TBExptUserDir
...
...
@@ -1694,33 +1694,6 @@ sub TBGetNodeAllocState($$)
return 1;
}
#
# Is a node imageable?
#
# usage TBIsNodeImageable(char *node)
# Returns 1 if yes.
# Returns 0 if no.
#
sub TBIsNodeImageable($)
{
my ($nodeid) = @_;
my $node = Node->Lookup($nodeid);
return 0
if (!defined($node));
my $imageable;
return 0
if ($node->NodeTypeAttribute("imageable", \$imageable) != 0);
$imageable = 0
if (!defined($imageable));
return $imageable;
}
#
# Is a node remote?
#
...
...
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