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
b0b2bfec
Commit
b0b2bfec
authored
Sep 16, 2013
by
Dan Reading
Browse files
checkinventorydrift: diff at change point not just against newest file
parent
b9df9923
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/gen_sql
View file @
b0b2bfec
...
...
@@ -12,6 +12,7 @@ checkdrift_main() {
else
allnodes
=
$(
ls
-d
pc
*
pg
*
dbox
*
)
fi
allnodes
=
"pc27 pc164 pc318 pc341 pc490"
for
host
in
$allnodes
;
do
if
[
-d
$projdir
/
$host
/.tbdb
]
;
then
cd
$projdir
/
$host
/.tbdb
...
...
@@ -24,7 +25,14 @@ checkdrift_main() {
# note: will check against self for sanity
comparetmcinfo /tmp/.
$$
checkdiff
if
[
-s
/tmp/.
$$
checkdiff
]
;
then
echo
""
echo
"
$host
$newest
$tocheck
are not the same"
echo
"====================================================="
# reset compar file
echo
"diff
$tocheck
$newest
"
diff
$tocheck
$newest
newest
=
$tocheck
readtmcinfo
$newest
hwinvcopy
# XXX - start
# XXX Do not enable this code unless you want
# the files moved out of the way
...
...
@@ -32,7 +40,7 @@ checkdrift_main() {
# sudo mv $tocheck $projdir/$host/.tbdb/.notsame
# XXX - end
else
# echo "$host $newest $tocheck SAME"
#
echo "$host $newest $tocheck SAME"
((
countsame++
))
fi
rm
-f
/tmp/.
$$
checkdiff
...
...
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