Expand EDQUOT variable
Results in failures with ksh version 93v- 2014-06-25. This appears to not be an issue with ksh version 93u+ 2012-08-01. The expanded versions works correctly for both. Signed-off-by: Andriy Gapon <andriy.gapon@clusterhq.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4452
This commit is contained in:
parent
88cfff1824
commit
bebd73f2c3
|
@ -57,7 +57,7 @@ function fill_quota
|
||||||
$FILE_WRITE -o create -f $MNTPT/$TESTFILE1 -b $BLOCK_SIZE \
|
$FILE_WRITE -o create -f $MNTPT/$TESTFILE1 -b $BLOCK_SIZE \
|
||||||
-c $write_size -d 0
|
-c $write_size -d 0
|
||||||
zret=$?
|
zret=$?
|
||||||
[[ $zret -ne EDQUOT ]] && \
|
[[ $zret -ne $EDQUOT ]] && \
|
||||||
log_fail "Returned error code: $zret. Expected: $EDQUOT."
|
log_fail "Returned error code: $zret. Expected: $EDQUOT."
|
||||||
|
|
||||||
typeset -i file_size=`$LS -ls $MNTPT/$TESTFILE1 | $AWK '{ print $1 }'`
|
typeset -i file_size=`$LS -ls $MNTPT/$TESTFILE1 | $AWK '{ print $1 }'`
|
||||||
|
@ -89,7 +89,7 @@ function exceed_quota
|
||||||
$FILE_WRITE -o create -f $MNTPT/$TESTFILE2 \
|
$FILE_WRITE -o create -f $MNTPT/$TESTFILE2 \
|
||||||
-b $BLOCK_SIZE -c $write_size -d 0
|
-b $BLOCK_SIZE -c $write_size -d 0
|
||||||
zret=$?
|
zret=$?
|
||||||
[[ $zret -ne EDQUOT ]] && \
|
[[ $zret -ne $EDQUOT ]] && \
|
||||||
log_fail "Returned error code: $zret. Expected: EDQUOT."
|
log_fail "Returned error code: $zret. Expected: $EDQUOT."
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue