#[tests/functional/privilege]
#tests = ['privilege_001_pos', 'privilege_002_pos']
-# DISABLED:
-# quota_002_pos - size is less than current used or reserved space
-# quota_004_pos - size is less than current used or reserved space
-# quota_005_pos - size is less than current used or reserved space
[tests/functional/quota]
-tests = ['quota_001_pos', 'quota_003_pos', 'quota_006_neg']
+tests = ['quota_001_pos', 'quota_002_pos', 'quota_003_pos',
+ 'quota_004_pos', 'quota_005_pos', 'quota_006_neg']
[tests/functional/raidz]
tests = ['raidz_001_neg', 'raidz_002_pos']
[[ $zret -ne $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 -lsk $MNTPT/$TESTFILE1 | $AWK '{ print $1 }'`
typeset -i limit=0
- (( file_size = file_size * 512 ))
+ (( file_size = file_size * 1024 ))
(( limit = QUOTA_VALUE + TOLERANCE ))
(( file_size > limit )) && \
log_fail "File was created larger than the quota value, aborting!!!"
# 1) Apply quota to the ZFS file system
# 2) Exceed the quota
# 3) Attempt to write another file
-# 4) Verify the attempt fails with error code 49 (EDQUOTA)
+# 4) Verify the attempt fails with error code EDQUOTA (linux 122, others 49)
#
#
# 1) Apply quota to the ZFS file system dataset
# 2) Exceed the quota
# 3) Attempt to write another file
-# 4) Verify the attempt fails with error code 49 (EDQUOTA)
+# 4) Verify the attempt fails with error code EDQUOTA (linux 122, others 49)
#
#