]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/837: fix test to work with pre-metadir quota mount options
authorDarrick J. Wong <djwong@kernel.org>
Mon, 10 Nov 2025 18:27:20 +0000 (10:27 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 14 Nov 2025 18:54:37 +0000 (02:54 +0800)
commit99f79500aa9e185cb1c75c2f5f0b8698cc1ca15c
treec053d2f54cf42872a216a62d52f69a717bea12fc
parent545c94d8c386a1efec68754fcd6422840517a689
xfs/837: fix test to work with pre-metadir quota mount options

Prior to metadir, xfs users always had to supply quota mount options to
get quota functionality, even if the mount options match the ondisk
superblock's qflag state.  The kernel, in turn, required a writable
filesystem if any mount options were specified.  As a result, this test
fails on those old filesystems because the _scratch_mount fails.

Metadir filesystems reuse whatever's in qflags if no mount options are
supplied, so we don't need them in MOUNT_OPTS anymore.

Change the _scratch_mount to _try_scratch_mount and add configurable
golden output to handle this case.

Cc: fstests@vger.kernel.org # v2025.06.22
Fixes: e225772353e212 ("xfs: add mount test for read only rt devices")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/837
tests/xfs/837.cfg [new file with mode: 0644]
tests/xfs/837.out [deleted file]
tests/xfs/837.out.default [new file with mode: 0644]
tests/xfs/837.out.oldquota [new file with mode: 0644]