All of lore.kernel.org
 help / color / mirror / Atom feed
From: K Richard Pixley <rpixley@graphitesystems.com>
To: Chris Murphy <lists@colorremedies.com>
Cc: Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: syntax for deleting subvolumes?
Date: Wed, 18 Mar 2015 16:22:20 -0700	[thread overview]
Message-ID: <550A08AC.7070506@graphitesystems.com> (raw)
In-Reply-To: <CAJCQCtQU=KzNqY=MTdqET5-J2JpDrS+O9EE50o9aXbRCJHU+xQ@mail.gmail.com>

On 3/18/15 15:15 , Chris Murphy wrote:
> On Wed, Mar 18, 2015 at 3:39 PM, K Richard Pixley
> <rpixley@graphitesystems.com> wrote:
>
>> 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.
> Other than the technical reasons Hugo mentions regarding nesting...
>
> The problem with the "install normally to top level with Linux FHS"
> approach like Ubuntu and openSUSE follow now, is that snapshots then
> have to go in the mounted path. This arguably exposes old binaries in
> that mounted path and is a possible security risk. There are some ways
> to mitigate that, but better when it's simply not in the mounted path,
> sorta like a chroot.
>
> It's also a better way to organize stateless systems. Myriad trees
> that can be used to form a stateless system existing "out of tree" and
> mounted either by path or subvolid is more sane (or at least less
> madness inducing) than alternatives. See under "what we propose" for
> the subvol naming convention:
> http://0pointer.net/blog/revisiting-how-we-put-together-linux-systems.html
>
> This is also compatible with delivery of such systems with a btrfs seed device.
I see.  Thanks for the education.

I'm not sure what I think about the possible security risk, but I hear 
the concern.

Most of the uses I have for btrfs involve fairly dynamic use of 
snapshots, typically by non-root users. That's what brought me to btrfs 
in the first place and continues to be the biggest driver for me.

Because of this, the top level file system would need to be mounted 
pretty much constantly, which essentially removes any benefit from the 
redundant top level subvol.  It's just a nuisance for my applications.  
And most of my applications try very hard to avoid mounting the 
snapshots.  That takes too much time and isn't reentrant.

It seems to me that it depends on whether you think of snapshots as a 
system admin sort of facility or as a user facility.  As a system admin 
facility, you're probably right.  But as a user level facility, I want 
to be able to snapshot before making a change to a tree full of source 
code and (re)building it all over again.  I may want to keep my new 
build, but I may want to flush it and return to known good state.  It's 
pretty easy to open that facility up to non-root users but the easiest 
way to do that that I've found is to use a single file system on root 
mounted directly.  For an individual user, this can easily save hours 
and hundreds of gigabytes.  For automated build systems, it can mean a 
few orders of magnitude difference in typical build times.

It's not clear to me yet how to set machines up this way from kickstart, 
which makes this scheme look like an impediment, rather than a feature.  
But maybe all I need is an easy way to shut it off and get the more 
familiar arrangement.

--rich

  reply	other threads:[~2015-03-18 23:22 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
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 [this message]
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=550A08AC.7070506@graphitesystems.com \
    --to=rpixley@graphitesystems.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.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 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.