linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What are parents? 'print parent ID' always matches top level
@ 2015-03-16 18:00 Chris Murphy
  0 siblings, 0 replies; only message in thread
From: Chris Murphy @ 2015-03-16 18:00 UTC (permalink / raw)
  To: Btrfs BTRFS

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-03-16 18:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-16 18:00 What are parents? 'print parent ID' always matches top level Chris Murphy

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).