diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-23 21:16:24 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-07-11 19:28:36 -0400 |
commit | c3151975b6c15e54a695cff7fa366c5785c36cb4 (patch) | |
tree | edc8192cb08a4d097d700e7192c6a38dc9998c66 | |
parent | 21e5667076e2ee415264b25b1d154f621d8a235e (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 |