From: "Austin S. Hemmelgarn" <ahferroin7@gmail.com>
To: Nicholas D Steeves <nsteeves@gmail.com>,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: btrfrs send ... | ... receive ... stores files sparsely?
Date: Mon, 18 Apr 2016 08:13:57 -0400 [thread overview]
Message-ID: <5714CF85.6020201@gmail.com> (raw)
In-Reply-To: <CAD=QJKjqh_yyfwGdjbBFp-UF0-szpr3xKGV2Bfvnbzc7kVgndA@mail.gmail.com>
On 2016-04-15 18:04, Nicholas D Steeves wrote:
> Hi,
>
> I happened to notice this when checking free space of my backup and
> primary system. I'll use an example of a file that won't have any
> private or confidential information. For du -hc
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache; ls -alh
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache; sha512sum
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
>
> On the sending system:
> 11M ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
> 11M total
> -rw-r--r-- 1 kdm nogroup 11M Apr 2 18:00
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
> 0ba53df610f35ef5170fe33fda4304456f4df2e9944447fa06467f8f6cfc89adc7da1698a1882929df56ce6be0e0846380cccfa411b4c7857f10a5c23d7797cb
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
>
> On the receiving system:
> 64K ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
> 64K total
> -rw-r--r-- 1 114 nogroup 11M Apr 2 18:00
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
> 0ba53df610f35ef5170fe33fda4304456f4df2e9944447fa06467f8f6cfc89adc7da1698a1882929df56ce6be0e0846380cccfa411b4c7857f10a5c23d7797cb
> ./var/tmp/kdecache-kdmtjNM8H/icon-cache.kcache
>
> The only thing I can think of is that something in btrfs send ... |
> ... receive ... is converting to sparse storage. Is this intentional?
> I suppose with a COW filesystem preallocating empty space to prevent
> fragmentation doesn't work, because as soon as that
> cache/database/whatever_file changes the filesystem COWs the changes
> to a location that will almost certainly require a seek... That said,
> will the way btrfs-progs is doing it cause similar issues with
> converting to sparse storage that I've observed with tar and rsync?
That does appear to be the case, which is slightly surprising to me, as
I would have expected it to replicate the extent layout also (or at
least, replicate what parts of the file were allocated and which were
unwritten extents).
As far as 'similar issues with converting to sparse storage', I'm not
entirely sure what you might mean, so I can't really say if it will or
won't cause issues.
prev parent reply other threads:[~2016-04-18 12:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-15 22:04 btrfrs send ... | ... receive ... stores files sparsely? Nicholas D Steeves
2016-04-18 12:13 ` Austin S. Hemmelgarn [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5714CF85.6020201@gmail.com \
--to=ahferroin7@gmail.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=nsteeves@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.