btrfs: test send after radical changes in a complex directory hierarchy
authorFilipe Manana <fdmanana@suse.com>
Wed, 14 Nov 2018 18:32:56 +0000 (18:32 +0000)
committerEryu Guan <guaneryu@gmail.com>
Sun, 18 Nov 2018 12:48:30 +0000 (20:48 +0800)
commitad91ed8a66cf02e6fef372f207f4e6fbc4272dff
tree213cc3abcb5c5bf7615e9f39d54cff72d69b19cb
parent4096b78d665eeb1cac15e6db8bbab37bc0a4b7e9
btrfs: test send after radical changes in a complex directory hierarchy

Test an incremental send operation in a scenario where the relationship
of ancestor-descendant between multiple directories is inversed, and
where multiple directories that were previously ancestors of another
directory now become descendents of multiple directories that used to be
their ancestors in the parent snapshot. This used to trigger an
infinite loop in the kernel code.

This is motivated by a bug found in btrfs which is fixed by the following
patch for the linux kernel:

  "Btrfs: send, fix infinite loop due to directory rename dependencies"

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/178 [new file with mode: 0755]
tests/btrfs/178.out [new file with mode: 0644]
tests/btrfs/group