diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-21 19:03:40 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-02-16 22:17:13 -0500 |
commit | 412ab71de42825070784f258c75d1828753e3640 (patch) | |
tree | f91ee9f6352e7ea891f5e8c7c6b1f288862ecb5b | |
parent | a63116ee3021fd60c946f98744ac710fa5e70a4e (diff) |
tests/bcachefs/subvol.subvol_mv
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rwxr-xr-x | tests/bcachefs/subvol.ktest | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bcachefs/subvol.ktest b/tests/bcachefs/subvol.ktest index b3a0be5..1915d84 100755 --- a/tests/bcachefs/subvol.ktest +++ b/tests/bcachefs/subvol.ktest @@ -705,4 +705,17 @@ test_snapshot_file_delete() umount /mnt } +test_subvol_mv() +{ + run_quiet "" bcachefs format -f ${ktest_scratch_dev[0]} + mount -t bcachefs ${ktest_scratch_dev[0]} /mnt + + bcachefs subvolume create /mnt/a + bcachefs subvolume create /mnt/a/b + mv /mnt/a/b /mnt + umount /mnt + + bcachefs fsck ${ktest_scratch_dev[0]} +} + main "$@" |