btrfs: test send with snapshots that have files deleted while open
authorFilipe Manana <fdmanana@suse.com>
Mon, 23 Jul 2018 08:11:03 +0000 (09:11 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 29 Jul 2018 05:13:58 +0000 (13:13 +0800)
commit6eab1aafe25972daeb733197b4b39e7818c88616
tree8028b7c0e191ee6f26e7d5dc8b9422caab550a95
parentb19c44702761c80cb8cc0347b1d16f09d1a0fb69
btrfs: test send with snapshots that have files deleted while open

Test that we are able to do send operations when one of the source
snapshots (or subvolume) has a file that is deleted while there is
still a open file descriptor for that file.

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

  "Btrfs: fix send failure when root has deleted files still open"

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