diff options
author | Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com> | 2025-03-27 15:24:26 +0100 |
---|---|---|
committer | Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com> | 2025-03-27 15:28:47 +0100 |
commit | 2ce70d9593beb00992322aeaba55fa292b3e9386 (patch) | |
tree | b6ec00086e055b9ce25abf175036503e88bbee21 | |
parent | 15ef2ff79fc73ce778e7c56677a2a4861f8a84e2 (diff) |
bcachefs: add regression test for EBUSY on mount
See issue: https://github.com/koverstreet/bcachefs/issues/840
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
-rwxr-xr-x | tests/fs/bcachefs/single_device.ktest | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/fs/bcachefs/single_device.ktest b/tests/fs/bcachefs/single_device.ktest index 7a1e3cc..6f4fb4a 100755 --- a/tests/fs/bcachefs/single_device.ktest +++ b/tests/fs/bcachefs/single_device.ktest @@ -82,6 +82,26 @@ test_remount_ro_rw() bcachefs_test_end_checks ${ktest_scratch_dev[0]} } +test_mount_again_after_ebusy() +{ + set_watchdog 10 + + run_quiet "" bcachefs format -f --errors=panic ${ktest_scratch_dev[0]} + echo "test: mount ro" + mount -t bcachefs -o ro ${ktest_scratch_dev[0]} /mnt + + mkdir -p /mnt2 + echo "test: try mount rw (1)" + ! mount -t bcachefs -o rw ${ktest_scratch_dev[0]} /mnt2 + echo "test: try mount rw (2)" + ! mount -t bcachefs -o rw ${ktest_scratch_dev[0]} /mnt2 + + umount /mnt + + bcachefs fsck -ny ${ktest_scratch_dev[0]} + bcachefs_test_end_checks ${ktest_scratch_dev[0]} +} + test_mount_options() { local dev=${ktest_scratch_dev[0]} |