linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: dedup and receive -p
Date: Tue, 15 Mar 2016 00:49:06 +0000 (UTC)	[thread overview]
Message-ID: <pan$107ae$106a86dc$2e999292$282894b@cox.net> (raw)
In-Reply-To: CAFENT7Ky+DXPSvKmMHcSW4+Nu2Fb0sAu_yZ4DPgNhHQ3bHO0jA@mail.gmail.com

Sylvain Joyeux posted on Mon, 14 Mar 2016 09:39:51 -0300 as excerpted:

> I was trying to find a definitive information about this, but could not
> ...
> 
> AFAIK,  defrag breaks CoW and send/receive -p. I was wondering whether
> deduplication would break it too, i.e. if doing a send/receive to
> transfer a subvolume, running dedup, and then using said subvolum as a
> parent with send -p would work or not.

I believe it would... if done as you posted.  But this seems blindingly 
obvious to me so I think either the scenario you posted didn't actually 
match what you intended in your head, or there's a misunderstanding on 
either your part or mine.

The better method would be to do the dedup, take a read-only snapshot of 
the subvolume, send/receive it (of course send/receive already works with 
snapshots, but this is making it explicit), and keep that snapshot around 
to do the later send -p from.

You could then continue using the subvolume itself without worrying about 
changing it in ways incompatible with send -p, because you'd be changing 
the subvolume, not the read-only snapshot you took of it for the send, 
which would remain unchanged and thus could be used as the basis of a 
later send -p without a problem.

But like I said using the read-only snapshot for both the original send 
and as the parent in the later send -p seems blindingly obvious to me, so 
I think somewhere along the line some signals got crossed and I'm not 
sure if you didn't write what you actually intended, or if either you or 
I misunderstood something somewhere along the line.

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman


      reply	other threads:[~2016-03-15  0:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-14 12:39 dedup and receive -p Sylvain Joyeux
2016-03-15  0:49 ` Duncan [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='pan$107ae$106a86dc$2e999292$282894b@cox.net' \
    --to=1i5t5.duncan@cox.net \
    --cc=linux-btrfs@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).