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