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
71d273d6
Commit
71d273d6
authored
Nov 22, 2013
by
Mike Hibler
Browse files
Tweak to account for extra field in blockstores.
parent
cc85ba3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/gen_sql
View file @
71d273d6
...
...
@@ -252,7 +252,7 @@ gentbsql_main() {
echo "
# drive
${
hdnum
}
already used, bumping hdnum again
"
((++hdnum))
done
printf "
mysql
-e \
"insert into blockstores values (%d, '%s', 'disk%d', '%s', 'element', %d, 1, now());
\"
tbdb
\n
"
"
$bsidx_base
"
"
$host
"
"
$hdnum
"
"
$hdtype
"
"
$size
"
printf "
mysql
-e \
"insert into blockstores values (%d, '%s', 'disk%d',
0,
'%s', 'element', %d, 1, now());
\"
tbdb
\n
"
"
$bsidx_base
"
"
$host
"
"
$hdnum
"
"
$hdtype
"
"
$size
"
# now the second table
printf
"mysql -e
\"
insert into blockstore_attributes values (%d, '%s', '%s', '%s');
\"
tbdb
\n
"
"
$bsidx_base
"
"serialnum"
"
$sn
"
"string"
((++bsidx_base))
...
...
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