From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs send clone use case
Date: Fri, 1 Jan 2016 08:58:31 +0000 (UTC) [thread overview]
Message-ID: <pan$5e659$256039e4$4fae854f$8723618d@cox.net> (raw)
In-Reply-To: CAJCQCtR03dZ7ErDsYox4kaxFsNapxxNLxFiN9R0qSMSdp0-_hg@mail.gmail.com
Chris Murphy posted on Thu, 31 Dec 2015 13:54:42 -0700 as excerpted:
> I haven't previously heard of this use case for -c option.
> It seems to work (no errors or fs weirdness afterward).
>
> The gist:
> send a snapshot from drive 1 to drive 2;
> rw snapshot of the drive 2 copy,
> and then make changes to it,
> then make an ro snapshot;
> now send it back to drive 1 *as an incremental* send.
While as you likely know my own use-case doesn't use send/receive, based
on previous on-list discussion, I considered this the obvious workaround
to the problem of the current send stream format not including enough
inheritance metadata to allow send/receive to properly handle a /reverse/
send -p.
Where -p works, it's the most efficient method, but due to this lack of
send-stream inheritance metadata, it apparently can't work in the reverse
case, where the usual receive end is now the send end.
But doing -c clones, while not /quite/ as efficient as -p because more
metadata is sent, is still far more efficient than doing a full send, and
can work in this reverse case where the original send side is now the
receive side because it's not as strict as -p, being rather more metadata
verbose in place of that strictness, where the -p option would fail due
to strictness and lack of appropriate inheritance metadata in the stream
format.
That -p mode missing inheritance metadata, being effectively just one
more item, would still be much more efficient than using -c clones, as
the clone format is generally more metadata-verbose in ordered to
properly identify per-extent clones, but it's simply not there in the
current format. When the send format is eventually version-bumped, this
additional metadata item should be included, making send -p work in these
reverse-send cases, but they ideally want to do just one more "final"
send-stream format bump including all changes they've found to be needed,
so they're holding off on the format bump for the moment, so as to be
able to include anything else they've overlooked when they do finally do
it.
That's as I understand the state of send/receive, anyway, being
interested in it on-list, but not being a current user. But this usage
of -c being almost precisely that "reverse-send" usage, only with an
additional change thrown in at the normal receive side before the send,
I'd actually have been surprised if it /didn't/ work as you outlined. =:^)
--
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
prev parent reply other threads:[~2016-01-01 8:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-31 20:54 btrfs send clone use case Chris Murphy
2016-01-01 8:58 ` 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$5e659$256039e4$4fae854f$8723618d@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).