From: Su Yue Date: Mon, 6 Jan 2025 14:01:24 +0000 (+0800) Subject: common/quota: filter out option projquota in _qmount_option for ocfs2 X-Git-Tag: v2025.01.12~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2fe8d7ccc993f03d91c984736b4f2fdb9377d067;p=xfstests-dev.git common/quota: filter out option projquota in _qmount_option for ocfs2 ocfs2 doesn't support projquota but does support usrquota an grpquota. For now, two tests generic/594 and generic/603 are for testing usrquota,grpquota and projquota. The mount option 'projquota' causes failure of ocfs2 mount. To make things simple, just skip the tests for ocfs2. However, we can't just put '_require_prjquota $SCRATCH_DEV' before _qmount because f2fs and xfs need runtime after mount of SCRATCH_DEV. For ocfs2, filter out option 'projquota' in _qmount_option() to make _qmount successful. Then in _require_prjquota(), ocfs2 will fallthrough as a no kernel projquota support fs type. Signed-off-by: Su Yue Reviewed-by: David Disseldorp Signed-off-by: Zorro Lang --- diff --git a/common/quota b/common/quota index 8135b7c0..8688116c 100644 --- a/common/quota +++ b/common/quota @@ -325,6 +325,9 @@ _qmount_option() OPTS=`echo $OPTS \ | sed -e 's/\bpquota/quota/g' \ -e 's/prjquota/quota/g'` + # ocfs2 doesn't support "-o projquota" + elif [[ "$FSTYP" == ocfs2 ]]; then + OPTS=`echo $OPTS | sed -e 's/prjquota//g'` fi # Ensure we have the given quota option - duplicates are fine if [ -n "$OPTS" ]; then