]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/270: actually test file readability
authorDarrick J. Wong <djwong@kernel.org>
Tue, 29 Aug 2023 23:09:53 +0000 (16:09 -0700)
committerZorro Lang <zlang@kernel.org>
Wed, 20 Sep 2023 07:48:46 +0000 (15:48 +0800)
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>
tests/xfs/270

index 7447ce87be79b8ff36e98db0a69cdf76b72029b9..900ae5d5ab1bc36977e5d230723c292814b2b527 100755 (executable)
@@ -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