btrfs: test incremental send swapping location of a directory with a file
authorFilipe Manana <fdmanana@suse.com>
Wed, 9 Jun 2021 10:25:14 +0000 (11:25 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Jun 2021 15:39:50 +0000 (23:39 +0800)
commit1c8b154ab9661649ae5d7c2f357e9b04b3c63c35
treec8331d112c1f2aa8b586d96e6809535b49e802d1
parent66734233e510507a78ae17841627ab95d50eb4a5
btrfs: test incremental send swapping location of a directory with a file

Test that an incremental send operation succeeds, and produces the
correct results, after renaming and moving around directories and files
with multiple hardlinks, in such a way that one of the files gets the old
name and location of a directory and another name (hardlink) with the old
name and location of another file that was located in that same directory.

This currently fails on btrfs but is fixed by a kernel patch with the
following subject:

  "btrfs: send: fix invalid path for unlink operations after parent orphanization"

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/241 [new file with mode: 0755]
tests/btrfs/241.out [new file with mode: 0644]
tests/btrfs/group