For sanity-quota 4a, the grace time is increased from 12s to 20s but
not actually set on filesystem.
Fixes:
3e4c3fdc ("LU-6836 test: re-add test 4a to sanity-quota for ZFS")
Test-Parameters: fstype=zfs testlist=sanity-quota env=ONLY=4a,ONLY_REPEAT=100
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: I2324e818a42a19bc9928f127b1622f1e5274db1f
Reviewed-on: https://review.whamcloud.com/47289
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
local TESTFILE=$DIR/$tdir/$tfile-0
local GRACE=12
+ [ "$mds1_FSTYPE" = zfs ] && GRACE=20
set_mdt_qtype $QTYPE || error "enable mdt quota failed"
echo "User quota (soft limit:$LIMIT files grace:$GRACE seconds)"
$LFS setquota -u $TSTUSR -b 0 -B 0 -i $LIMIT -I 0 $DIR ||
error "set user quota failed"
- [ "$mds1_FSTYPE" = zfs ] && GRACE=20
-
test_file_soft $TESTFILE $LIMIT $GRACE "u"
echo "Group quota (soft limit:$LIMIT files grace:$GRACE seconds)"