Re: Bug#561225: coreutils: cp --reflink fails with Btrfs file system
From:
Jason White
Subject:
Re: Bug#561225: coreutils: cp --reflink fails with Btrfs file system
Date:
Wed, 16 Dec 2009 10:21:34 +1100
User-agent:
Mutt/1.5.20 (2009-06-14)
Jim Meyering <address@hidden> wrote:
> Can you rerun that via strace and send the log at least
> to the bug-coreutils list (Cc'd)?
>
> strace -o log cp --reflink testfile testfile2
It opens both files and then performs the ioctl() call:
ioctl(4, 0x40049409, 0x3) = -1 EINVAL (Invalid argument)
>
> Even better, can you do that using stock upstream coreutils-8.2,
> assuming it still fails?
This may not be necessary. If I run strace on bcp, it turns out that its
ioctl() call encounters the same error:
ioctl(3, 0x40049409, 0x4) = -1 EINVAL (Invalid argument)
and thus the suggestion that bcp (by behaving like --reflink=auto) is masking
the issue appears to be exactly on point.