Package: coreutils
Version: 8.0-2
address@hidden:~$ touch testfile
address@hidden:~$ cp --reflink testfile testfile2
cp: failed to clone `testfile2': Invalid argument
I am running kernel 2.6.32 with a Btrfs root file system under KVM, x86-64
architecture.
It was suggested on the Btrfs mailing list that I test file cloning by running
the bcp demonstration script provided as part of btrfs-progs (available from
a Btrfs Git repository). In my test, bcp was able to clone a file,
suggesting that this may be a Coreutils bug rather than a kernel issue.