btrfs: add regression test for btrfs send with orphans
authorFilipe Manana <fdmanana@suse.com>
Wed, 13 Aug 2014 01:20:37 +0000 (11:20 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 13 Aug 2014 01:20:37 +0000 (11:20 +1000)
commite4549032fb3af6cf5f82e6f756d4e052bb09a48c
treefcf487ab028f132ebbe300e7e387892864028bae
parent677d7e16deb3c8b1b5794319b23dff56aa568bef
btrfs: add regression test for btrfs send with orphans

Regression test for a btrfs issue where we create a RO snapshot
to use for a send operation, which fails with a -ESTALE error,
due to the presence of orphan inodes accessible through the
snapshot's commit root but no longer present through the main
root.

This issue is fixed by the following linux kernel btrfs patch:

  Btrfs: update commit root on snapshot creation after orphan cleanup

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/058 [new file with mode: 0644]
tests/btrfs/058.out [new file with mode: 0644]
tests/btrfs/group