btrfs: sparse copy between different filesystems/mountpoints
authorKoen De Wit <koen.de.wit@oracle.com>
Mon, 20 Jan 2014 02:56:37 +0000 (13:56 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 20 Jan 2014 02:56:37 +0000 (13:56 +1100)
commit30997917e50a4bc1341d70bdf4ab24d20aa9bbd7
treef03770f98f9e3583da522231ddb088ba487d1945
parent9b48c972a9132269750235e1abc4f2904b458497
btrfs: sparse copy between different filesystems/mountpoints

Check if creating a sparse copy ("reflink") of a file on btrfs
expectedly fails when it's done between different filesystems or
different mount points of the same filesystem.

For both situations, these actions are executed:
   - Copy a file with the reflink=auto option.
     A normal copy should be created.
   - Copy a file with the reflink=always option. Should result in
     error.

[sandeen: mostly cosmetic changes]

Signed-off-by: Koen De Wit <koen.de.wit@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/029 [new file with mode: 0644]
tests/btrfs/029.out [new file with mode: 0644]
tests/btrfs/group