All of lore.kernel.org
 help / color / mirror / Atom feed
* root subvol id is 0 or 5?
@ 2014-11-30  3:31 Shriramana Sharma
  2014-11-30  7:48 ` Goffredo Baroncelli
  2014-11-30 11:59 ` Hugo Mills
  0 siblings, 2 replies; 8+ messages in thread
From: Shriramana Sharma @ 2014-11-30  3:31 UTC (permalink / raw)
  To: linux-btrfs

I am confused with this: should I call it the "root subvol" or
"top-level subvol" or "default subvol" or doesn't it matter? Are all
subvols equal, or some are more equal than others [hark to Orwell's
Animal Farm ;-)]?

And more importantly, is the ID of the root subvol 0 or 5?

The Oracle guide
(https://docs.oracle.com/cd/E37670_01/E37355/html/ol_use_case3_btrfs.html)
seems to say it's 0 :

"By default, the operating system mounts the parent btrfs volume,
which has an ID of 0"

but the BtrFS wiki (and btrfs subvol manpage) reads 5:

"every btrfs filesystem has a default subvolume as its initially
top-level subvolume, whose subvolume id is 5(FS_TREE)."

as also the Ubuntu Wiki:

"The default subvolume to mount is always the top of the btrfs tree
(subvolid=5)."

Now this Oracle page
http://www.oracle.com/technetwork/articles/servers-storage-admin/advanced-btrfs-1734952.html
says:

"The only clean way to destroy the default subvolume is to rerun the
mkfs.btrfs command, which would destroy existing data."

So from what I've (confusedly) understood so far, 0 refers to the
superstructure (or whatchamacallit) of the entire BtrFS-based contents
of the device(s) and hence cannot be deleted but only reset by a
mkfs.btrfs, but 5 is only the default subvol (mounted when the FS as a
whole is mounted without subvol spec) provided by mkfs.btrfs, and
subvol set-default can have another subvol mounted as default instead,
after which 5 can actually be deleted?

[confused]...

-- 
Shriramana Sharma ஶ்ரீரமணஶர்மா श्रीरमणशर्मा

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-02-27 16:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-30  3:31 root subvol id is 0 or 5? Shriramana Sharma
2014-11-30  7:48 ` Goffredo Baroncelli
2014-11-30 11:59 ` Hugo Mills
2014-11-30 13:38   ` Shriramana Sharma
2014-11-30 13:42     ` Shriramana Sharma
2015-02-27 16:50       ` David Sterba
2014-11-30 13:53     ` Hugo Mills
2014-12-01  3:49       ` Duncan

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.