Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c112f51
)
Reduce a line to several < 80 char lines.
author
brian
<brian>
Mon, 6 Aug 2007 19:57:12 +0000
(19:57 +0000)
committer
brian
<brian>
Mon, 6 Aug 2007 19:57:12 +0000
(19:57 +0000)
lustre-iokit/sgpdd-survey/sgpdd-survey
patch
|
blob
|
history
diff --git
a/lustre-iokit/sgpdd-survey/sgpdd-survey
b/lustre-iokit/sgpdd-survey/sgpdd-survey
index
94946c0
..
6a62300
100755
(executable)
--- a/
lustre-iokit/sgpdd-survey/sgpdd-survey
+++ b/
lustre-iokit/sgpdd-survey/sgpdd-survey
@@
-136,7
+136,9
@@
for ((rsz=$rszlo;rsz<=$rszhi;rsz*=2)); do
dev=${devs[i]}
devsize=$((bs*`sg_readcap -b ${dev} | awk '{print $1}'`/1024))
if [ $devsize -lt $actual_size ]; then
dev=${devs[i]}
devsize=$((bs*`sg_readcap -b ${dev} | awk '{print $1}'`/1024))
if [ $devsize -lt $actual_size ]; then
- echo -e "device $(sg_map | grep $dev | awk '{ print $2; }') not big enough: $devsize < $actual_size.\nConsider reducing \$size"
+ _dev=$(sg_map | grep $dev | awk '{ print $2; }')
+ echo -e "device $_dev not big enough: $devsize <" \
+ "$actual_size.\nConsider reducing \$size"
exit 1
fi
if [ $action = read ]; then
exit 1
fi
if [ $action = read ]; then