btrfs: add test for btrfs send with large xattrs
authorFilipe David Borba Manana <fdmanana@gmail.com>
Tue, 27 May 2014 02:07:39 +0000 (12:07 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 27 May 2014 02:07:39 +0000 (12:07 +1000)
commit3318629e4a9a36b28d36be75e8a01b7eeeddec1f
treea30bef43f059b34b14f7fa463d9641ef114ab855
parentd14027745c7ef761360f030f807499884c9cb086
btrfs: add test for btrfs send with large xattrs

Verify that btrfs send is able to replicate xattrs larger than
PATH_MAX. This is possible if the b+tree leaf size is larger
than 4Kb (mkfs.btrfs's default is max(16Kb, PAGE_SIZE) as of
btrfs-progs v3.12, and max(4Kb, PAGE_SIZE in older versions).

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

   Btrfs: send, use the right limits for xattr names and values

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