On Sat, Dec 07, 2013 at 10:31:30PM +0100, Pascal Germroth wrote:
> Running a 3.8 kernel I've been using bedup to deduplicate some files,
> for example two identical 500MB files A & B now share data chunks.
> Running a 3.11 kernel, I wanted to clone some more files, but those
> previously deduplicated by bedup don't work, for example: `cp
> --reflink A C`:
>
> open("A", O_WRONLY|O_TRUNC) = 4
> fstat(4, {st_mode=S_IFREG|0775, st_size=0, ...}) = 0
> ioctl(4, BTRFS_IOC_CLONE, 0x3) = -1 EINVAL (Invalid argument)
This can fail eg when the files have different status wrt checksums,
when one of the files is nocow or created under nodatasum mount (there's
no way to create nodatasum file otherwise, unlike nodatacow).
Look at lsattr output if the files have the C attribute.
david
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html