Whamcloud - gitweb
LU-15839 tests: correct the ZFS grace time for sanity-quota 4a 27/56927/3
authorEtienne AUJAMES <eaujames@ddn.com>
Fri, 8 Nov 2024 19:03:02 +0000 (11:03 -0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 18 Nov 2024 17:41:11 +0000 (17:41 +0000)
For  sanity-quota 4a, the grace time is increased from 12s to 20s but
not actually set on filesystem.

Lustre-change: https://review.whamcloud.com/47289
Lustre-commit: 8f306f00c02e5455cef48d227f28e8cb90127719

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-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56927
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index c78009a..11e1ba8 100755 (executable)
@@ -1710,6 +1710,7 @@ test_4a() {
        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)"
@@ -1722,8 +1723,6 @@ test_4a() {
        $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)"