diff options
author | koverstreet <kent.overstreet@gmail.com> | 2025-03-28 13:45:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-28 13:45:00 -0400 |
commit | 3395d2997c9ba487393882b8d0e5fde75b0a5af3 (patch) | |
tree | b6ec00086e055b9ce25abf175036503e88bbee21 | |
parent | 15ef2ff79fc73ce778e7c56677a2a4861f8a84e2 (diff) | |
parent | 2ce70d9593beb00992322aeaba55fa292b3e9386 (diff) |
Merge pull request #37 from falbrechtskirchinger/test-ebusy
bcachefs: add regression test for `EBUSY` on mount
-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]} |