Skip to contentSkip to conversation

fstests: generic/537: remove the btrfs specific mount option

PATCH In review Qu Wenruo 3 participants 3 messages May 19, 2025 – May 24, 2025 Btrfs file system

lore
Share & tools
lore

Qu Wenruo

author
#0 lore raw

PATCH 1/1 fstests: generic/537: remove the btrfs specific mount option

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.

---
 tests/generic/537 | 1 -
 1 file changed, 1 deletion(-)
tests/generic/537 +0 -1
index 3be743c4..77d38bbf 100755
@@ -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"
Signature · 1 line
2.49.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Qu Wenruo

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").

Quoted 6 lines

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.