From: Darrick J. Wong Date: Tue, 29 Aug 2023 23:09:53 +0000 (-0700) Subject: xfs/270: actually test file readability X-Git-Tag: v2023.09.24~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d79d44afac69bd9507f9c5ccd99e48224a0dbdaa;p=xfstests-dev.git xfs/270: actually test file readability Make sure we can actually read files off the ro mounted filesystem that has an unknown rocompat feature set. Signed-off-by: "Darrick J. Wong" Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/xfs/270 b/tests/xfs/270 index 7447ce87..900ae5d5 100755 --- a/tests/xfs/270 +++ b/tests/xfs/270 @@ -17,12 +17,17 @@ _begin_fstest auto quick mount # real QA test starts here _supported_fs xfs +_fixed_by_kernel_commit xxxxxxxxxxxx \ + "xfs: fix log recovery when unknown rocompat bits are set" # skip fs check because superblock contains unknown ro-compat features _require_scratch_nocheck # Only V5 XFS disallow rw mount/remount with unknown ro-compat features _require_scratch_xfs_crc _scratch_mkfs_xfs >>$seqres.full 2>&1 +_scratch_mount +echo moo > $SCRATCH_MNT/testfile +_scratch_unmount # set the highest bit of features_ro_compat, use it as an unknown # feature bit. If one day this bit become known feature, please @@ -68,6 +73,7 @@ if [ $? -ne 0 ]; then _fail "ro mount test failed" else # no hang/panic is fine + cat $SCRATCH_MNT/testfile > /dev/null $FSSTRESS_PROG -d $SCRATCH_MNT -p 4 -n 400 >>$seqres.full 2>&1 fi