bug-coreutils
[Top][All Lists]
Advanced

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

Re: BTRFS file clone support for cp


From: Jim Meyering
Subject: Re: BTRFS file clone support for cp
Date: Sun, 26 Jul 2009 10:15:11 +0200

Giuseppe Scrivano wrote:
> Jim Meyering <address@hidden> writes:
>>> ..., a cloned partially-sparse file on btrfs takes less
>>> space than a fully-sparse copied file.
>>
>> That is not true.  A fully-sparse file takes less space
>> than a partially-sparse one.
>
> Sorry I wasn't clear, I wanted to say that a cloned file in any case
> take less space than really copying it.

That depends on what you mean by "really copying it".
If you copy with --sparse=always and the file has at least
one non-sparse run of zeros, that result will be smaller
than the cloned file.

>> Adding this optimization should not change the meaning of
>> --sparse=always.
>
> So do you want to use it only when --sparse=auto is used?

Precisely.




reply via email to

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