From: Chris Murphy <lists@colorremedies.com>
To: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: What are parents? 'print parent ID' always matches top level
Date: Mon, 16 Mar 2015 12:00:29 -0600 [thread overview]
Message-ID: <CAJCQCtT1dpNFj2HiV6-V3u_2SHkjbRhj=VvnRQNA==Mi19NUbQ@mail.gmail.com> (raw)
I'm confused by the use of parent in this context. Do we have more
than one kind of "parent"?
Example below shows four subvolumes (not snapshots), and the last one
is a snapshot of the first.
# btrfs sub list -p /mnt
ID 257 gen 1414 parent 5 top level 5 path root
ID 258 gen 1351 parent 5 top level 5 path home
ID 259 gen 139 parent 5 top level 5 path boot
ID 262 gen 1407 parent 257 top level 257 path root/var/lib/machines
ID 264 gen 1413 parent 5 top level 5 path rootsnap
If this "parent" has anything to do with snapshots, I'd expect the
last line to read:
ID 264 gen 1413 parent 257 top level 5 path rootsnap
And for that matter I don't know what I expect for the fourth line:
ID 262 gen 1407 parent ? top level 257 path root/var/lib/machines
It has no parent, none of the non-snapshot subvolumes do. I don't
think it's OK to repurpose "parent" if it has two contextual meanings.
Chris Murphy
reply other threads:[~2015-03-16 18:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CAJCQCtT1dpNFj2HiV6-V3u_2SHkjbRhj=VvnRQNA==Mi19NUbQ@mail.gmail.com' \
--to=lists@colorremedies.com \
--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).