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
9f10a704
Commit
9f10a704
authored
Sep 28, 2001
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add check for valid imageid. Sucks when you mess this up and it gets
stuck in the reload table!.
parent
4c11aa5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tbsetup/sched_reload.in
tbsetup/sched_reload.in
+11
-1
No files found.
tbsetup/sched_reload.in
View file @
9f10a704
...
...
@@ -116,7 +116,17 @@ foreach my $node ( @ARGV ) {
# Mere users cannot schedule reloads.
#
if
(
$UID
&&
!
TBAdmin
(
$UID
))
{
die
("
Only root or TB administrators can schedule disk reloads.
\n
");
die
("
*** Only root or TB administrators can schedule disk reloads.
\n
");
}
#
# Confirm a valid imageid!
#
my
$query_result
=
DBQueryFatal
("
select * from images where imageid='
$imageid
'
");
if
(
$query_result
->
numrows
<
1
)
{
die
("
*** No such imageid
$imageid
is registered in the DB!
");
}
#
...
...
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