]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
fstests: generic/537: remove the btrfs specific mount option
authorQu Wenruo <wqu@suse.com>
Mon, 19 May 2025 05:28:39 +0000 (14:58 +0930)
committerZorro Lang <zlang@kernel.org>
Wed, 21 May 2025 04:57:40 +0000 (12:57 +0800)
Although btrfs deprecated "norecovery" mount option in upstream kernel
commit a1912f712188 ("btrfs: remove code for inode_cache and recovery
mount options"), later "norecovery" mount option is re-introduced for
compatibility by commit 440861b1a03c ("btrfs: re-introduce 'norecovery'
mount option").

Instead the btrfs specific mount option "nologreplay" is already
deprecated for a long time and is going to be removed soon.

So use the generic "norecovery" for all filesystems.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/537

index 3be743c4133f4ff2c3d453ef66a8dd67bd7db5ca..77d38bbf93638c26583513322bbc8c8f83333c59 100755 (executable)
@@ -55,7 +55,6 @@ fi
 
 echo "fstrim on ro mount with no log replay"
 norecovery="norecovery"
-test $FSTYP = "btrfs" && norecovery=nologreplay
 _scratch_mount -o ro,$norecovery >> $seqres.full 2>&1
 $FSTRIM_PROG -v $SCRATCH_MNT >> $seqres.full 2>&1 && \
        echo "fstrim with unrecovered metadata just ate your filesystem"