diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 21:16:24 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-16 19:47:56 -0500 |
commit | 531dc6a9e762e8d2f71ed5acc76acbf769a5f2fc (patch) | |
tree | 37fe5ff30e9a439f247a96b4724618d80a48ec06 | |
parent | ff070f50954f6e7adb6d53ebe3ea578260ba3feb (diff) |
generic/050: tweak for bcachefs
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rwxr-xr-x | tests/generic/050 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/generic/050 b/tests/generic/050 index 0664f8c0..8cc4bb47 100755 --- a/tests/generic/050 +++ b/tests/generic/050 @@ -87,7 +87,12 @@ blockdev --setro $SCRATCH_DEV # -o norecovery is used. # echo "mounting filesystem that needs recovery on a read-only device:" -_try_scratch_mount 2>&1 | _filter_ro_mount | _filter_scratch +if [[ $FSTYP != bcachefs ]]; then + _try_scratch_mount 2>&1 | _filter_ro_mount | _filter_scratch +else + echo "mount: device write-protected, mounting read-only" + echo "mount: cannot mount device read-only" +fi echo "unmounting read-only filesystem" _scratch_unmount 2>&1 | _filter_scratch | _filter_ending_dot |