From: Chao Yu Date: Tue, 23 Jul 2019 09:25:28 +0000 (+0800) Subject: common/quota: support f2fs in _require_quota() and _check_quota_usage() X-Git-Tag: v2022.05.01~1085 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=7431fe2c465099f5644660413bf7e5cadc79c2d2 common/quota: support f2fs in _require_quota() and _check_quota_usage() This can let f2fs pass the check of quota testcases. Signed-off-by: Chao Yu Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/quota b/common/quota index f19f81a1..9af280a2 100644 --- a/common/quota +++ b/common/quota @@ -12,7 +12,7 @@ _require_quota() [ -n "$QUOTA_PROG" ] || _notrun "Quota user tools not installed" case $FSTYP in - ext2|ext3|ext4|ext4dev|reiserfs) + ext2|ext3|ext4|ext4dev|f2fs|reiserfs) if [ ! -d /proc/sys/fs/quota ]; then _notrun "Installed kernel does not support quotas" fi @@ -257,7 +257,7 @@ _check_quota_usage() VFS_QUOTA=0 case $FSTYP in - ext2|ext3|ext4|ext4dev|reiserfs|gfs2) + ext2|ext3|ext4|ext4dev|f2fs|reiserfs|gfs2) VFS_QUOTA=1 quotaon -f -u -g $SCRATCH_MNT 2>/dev/null ;;