Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Hugo Mills <hugo@carfax.org.uk>
To: K Richard Pixley <rpixley@graphitesystems.com>
Cc: Chris Murphy <lists@colorremedies.com>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: syntax for deleting subvolumes?
Date: Wed, 18 Mar 2015 21:55:12 +0000	[thread overview]
Message-ID: <20150318215512.GC31762@carfax.org.uk> (raw)
In-Reply-To: <5509F08E.6070702@graphitesystems.com>

[-- Attachment #1: Type: text/plain, Size: 1518 bytes --]

On Wed, Mar 18, 2015 at 02:39:26PM -0700, K Richard Pixley wrote:
> On 3/18/15 14:06 , Chris Murphy wrote:
> >The Fedora/RHEL/CentOS installer creates two subvolumes: root and
> >home. If you check out fstab, those subvolumes are mounted at /
> >and /home. Therefore the top level subvolume (id 5) is not mounted
> >by default, so there's no way to delete subvolumes in the top
> >level.
> Ah!  Thank you.  That's the piece I was missing.
> 
> IMO, someone needs to take a clue-by-four to the heads of the
> Fedora/RHEL/CentOS installer folks.  I see no reason for this with
> btrfs.

   Actually, it's the recommended approach.

   We've found over time that nesting subvolumes inside each other is,
in general, more trouble than it's worth. It makes it harder to do
things like take snapshots and then replace the original with a
snapshot (e.g. rollback to an earlier state).

   Arranging the subvolumes with the top level (subvolid=0) as nothing
but a store for subvolumes means that you don't get the subvolumes
tangled up with each other, so it's much easier to manage them in
general.

   There's a few cases where nesting subvolumes is helpful, but that's
more to do with preventing snapshots being taken of some pieces of the
filesystem.

   Hugo.

-- 
Hugo Mills             | "There's a Martian war machine outside -- they want
hugo@... carfax.org.uk | to talk to you about a cure for the common cold."
http://carfax.org.uk/  |
PGP: 65E74AC0          |                           Stephen Franklin, Babylon 5

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2015-03-18 21:55 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 20:42 syntax for deleting subvolumes? K Richard Pixley
2015-03-18 21:06 ` Chris Murphy
2015-03-18 21:39   ` K Richard Pixley
2015-03-18 21:55     ` Hugo Mills [this message]
2015-03-18 23:01       ` K Richard Pixley
2015-03-18 23:33         ` Chris Murphy
2015-03-19  0:47           ` Jeff Mahoney
2015-03-19  2:55             ` Chris Murphy
2015-03-18 22:15     ` Chris Murphy
2015-03-18 23:22       ` K Richard Pixley
2015-03-18 23:50         ` Chris Murphy
2015-03-19  7:18         ` Erkki Seppala
2015-03-21  3:20           ` Russell Coker
2015-03-19 19:09         ` Chris Murphy
2015-03-20  4:18           ` Duncan
2015-03-21  3:17             ` Russell Coker
2015-03-18 21:09 ` Hugo Mills

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=20150318215512.GC31762@carfax.org.uk \
    --to=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=rpixley@graphitesystems.com \
    /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