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:
Andriy Gapon 2016-03-25 16:29:35 +02:00 committed by Brian Behlendorf
parent 88cfff1824
commit bebd73f2c3
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ function fill_quota
$FILE_WRITE -o create -f $MNTPT/$TESTFILE1 -b $BLOCK_SIZE \
-c $write_size -d 0
zret=$?
[[ $zret -ne EDQUOT ]] && \
[[ $zret -ne $EDQUOT ]] && \
log_fail "Returned error code: $zret. Expected: $EDQUOT."
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 \
-b $BLOCK_SIZE -c $write_size -d 0
zret=$?
[[ $zret -ne EDQUOT ]] && \
log_fail "Returned error code: $zret. Expected: EDQUOT."
[[ $zret -ne $EDQUOT ]] && \
log_fail "Returned error code: $zret. Expected: $EDQUOT."
return 0
}