bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug#561225: coreutils: cp --reflink fails with Btrfs file system


From: Pádraig Brady
Subject: Re: Bug#561225: coreutils: cp --reflink fails with Btrfs file system
Date: Tue, 15 Dec 2009 13:25:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0

On 15/12/09 13:00, Jim Meyering wrote:
Jason White wrote:
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.

Note the bcp python script silently falls back to a standard copy,
so may be hiding the issue. Note you can get that behaviour with cp like:

cp --reflink=auto testfile testfile2

cheers,
Pádraig.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]