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
6b45ed7e
Commit
6b45ed7e
authored
Jun 14, 2013
by
Dan Reading
Browse files
we have disks smaller then 16Gb, so lower threshold for claiming it as USB drive
parent
64adc38b
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/common/checknode/diskcheck
View file @
6b45ed7e
...
...
@@ -154,7 +154,7 @@ main() {
case
$i
in
$rspeed_val
)
# check the size, if small then might be a USB drive
if
[
${
d
[
$size_val
]
}
-gt
16
]
;
then
if
[
${
d
[
$size_val
]
}
-gt
8
]
;
then
d[
$rspeed_val
]=
$(
getrspeed
${
drive
[
$idx
]
}
)
else
d[
$rspeed_val
]=
0
...
...
@@ -163,7 +163,7 @@ main() {
fi
;;
$wspeed_val
)
if
[
${
d
[
$size_val
]
}
-gt
16
]
;
then
if
[
${
d
[
$size_val
]
}
-gt
8
]
;
then
d[
$wspeed_val
]=
$(
getwspeed
${
drive
[
$idx
]
}
)
else
d[
$wspeed_val
]=
0
...
...
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