]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
common/quota: filter out option projquota in _qmount_option for ocfs2
authorSu Yue <glass.su@suse.com>
Mon, 6 Jan 2025 14:01:24 +0000 (22:01 +0800)
committerZorro Lang <zlang@kernel.org>
Sun, 12 Jan 2025 04:20:17 +0000 (12:20 +0800)
commit2fe8d7ccc993f03d91c984736b4f2fdb9377d067
treee899b37d55403d1363ef86542775e720f1830635
parente2da1194fb7d6ebca681c2e9321c03fe607fe7b2
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 <glass.su@suse.com>
Reviewed-by: David Disseldorp <ddiss@suse.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/quota