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>
This commit is contained in:
Koen De Wit
2014-01-20 13:56:37 +11:00
committed by Dave Chinner
parent 9b48c972a9
commit 30997917e5
3 changed files with 124 additions and 0 deletions
+1
View File
@@ -31,3 +31,4 @@
026 auto quick
027 auto quick
028 auto quick
029 auto quick