diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-08-29 16:09:53 -0700 |
---|---|---|
committer | Zorro Lang <zlang@kernel.org> | 2023-09-20 15:48:46 +0800 |
commit | d79d44afac69bd9507f9c5ccd99e48224a0dbdaa (patch) | |
tree | 8cba47c68de04201ac787664dca206200a4212c7 | |
parent | 8abf8a203a9e09838e6b4cc9e51680aa82d930e9 (diff) |
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" <djwong@kernel.org>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-x | tests/xfs/270 | 6 |
1 files changed, 6 insertions, 0 deletions
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 |