summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-16 10:16:07 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-16 10:16:07 -0400
commitcf50d60372fec3784e60a4f0f87736c3ce1c221b (patch)
tree89d105529cac2099f9274385c428ac0c6fd64cac
parentf8a7975f900e63b6fd988eab429a16657e4eb7dc (diff)
bcachefs: improve test_subvol_mv_snapshot()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rwxr-xr-xtests/fs/bcachefs/subvol.ktest2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fs/bcachefs/subvol.ktest b/tests/fs/bcachefs/subvol.ktest
index eddf6e9..b7e3dda 100755
--- a/tests/fs/bcachefs/subvol.ktest
+++ b/tests/fs/bcachefs/subvol.ktest
@@ -388,7 +388,9 @@ test_subvol_mv_snapshot()
run_quiet "" bcachefs format -f --errors=panic ${ktest_scratch_dev[0]}
mount -t bcachefs ${ktest_scratch_dev[0]} /mnt
bcachefs subvolume create /mnt/sub1
+ bcachefs subvolume create /mnt/sub1/sub2
bcachefs subvolume snapshot /mnt/ /mnt/snap1
+ bcachefs subvolume snapshot /mnt/sub1 /mnt/snap2
mv /mnt/sub1 /mnt/sub2
umount /mnt