]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
btrfs: test snapshotting a subvolume that was just created
authorFilipe Manana <fdmanana@suse.com>
Tue, 24 Oct 2023 11:23:46 +0000 (12:23 +0100)
committerZorro Lang <zlang@kernel.org>
Fri, 27 Oct 2023 12:17:38 +0000 (20:17 +0800)
commit6b4920afad0f74d347f4c383772986c5422f6ca1
treeac7cca237320dcd8d2139ad1a1c032c184cb64a8
parent30fc8ed13aa241e7caf1c27d1b60c64ab3ae7a18
btrfs: test snapshotting a subvolume that was just created

Test that snapshotting a new subvolume (created in the current transaction)
that has a btree with a height > 1, works and does not result in a fs
corruption.

This exercises a regression introduced in kernel 6.5 by the kernel commit:

  1b53e51a4a8f ("btrfs: don't commit transaction for every subvol create")

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/302 [new file with mode: 0755]
tests/btrfs/302.out [new file with mode: 0644]