From 412ab71de42825070784f258c75d1828753e3640 Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Sun, 21 Jan 2024 19:03:40 -0500 Subject: tests/bcachefs/subvol.subvol_mv Signed-off-by: Kent Overstreet --- tests/bcachefs/subvol.ktest | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 "$@" -- cgit v1.2.3