All of lore.kernel.org
 help / color / mirror / Atom feed
From: C Anthony Risinger <anthony@extof.me>
To: Andrey Kuzmin <andrey.v.kuzmin@gmail.com>
Cc: Mike Fedyk <mfedyk@mikefedyk.com>, David Arendt <admin@prnet.org>,
	"linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: Re: Default to read-only on snapshot creation and have a flag if snapshot should be writable (was: [PATCH 0/5] btrfs: Readonly snapshots)
Date: Mon, 29 Nov 2010 18:33:09 -0600	[thread overview]
Message-ID: <6742321336526268697@unknownmsgid> (raw)
In-Reply-To: <AANLkTimb=-v4b-fHqRpW-7Q2gyzHp=8e3Ouff3ShoQJr@mail.gmail.com>

On Nov 29, 2010, at 3:48 PM, Andrey Kuzmin <andrey.v.kuzmin@gmail.com>
wrote:

> I'm not sure why zfs came up, they don't own the term :). As to
> zfs/overhead topic, I doubt there's any difference between clone and
> writable shapshot (there should be none, of course, it's just two
> different names for the same concept).
>
> Regards,
> Andrey
>
>
>
>
> On Tue, Nov 30, 2010 at 12:43 AM, Mike Fedyk <mfedyk@mikefedyk.com>
> wrote:
>> On Mon, Nov 29, 2010 at 1:31 PM, Andrey Kuzmin
>> <andrey.v.kuzmin@gmail.com> wrote:
>>> This may sound excessive as any new concept introduction that late
>>> in
>>> development, but readonly/writable snapshots could be further
>>> differentiated by naming the latter clones. This way end-user would
>>> naturally perceive snapsot as read-only PIT fs image, while clone
>>> would naturally refer to (writable) head fork.
>>>
>>
>> I'm not sure we want to take all of the terminology that zfs uses as
>> it may also bring the percieved drawbacks as well.  Isn't there some
>> additional overhead for a zfs clone compared to a snapshot?  I'm not
>> very familiar with zfs so that's why I ask.
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-
> btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

I don't like the idea of readonly by default, or further changes to
terminology, for several reasons:

) readonly by default offers no real enhancement whatsoever other than
breaking _anything_ that's written right now
) btrfs readonly is not even really readonly; as superuser could
simply flip a flag to enable writes, readonly merely prevents
accidental writes or misbehaving apps... ie. protecting you from
yourself
) backups are the simple/obvious use case; I personally use btrfs
heavily for LXC containers, in which case nearly every single snapshot
is intended to be writable -- usually cloning a template into a new
domain
) I also use an initramfs hook to provide system rollbacks, also
writable; the hook also provides multiple versions of the "branch"...
all writable
) adding new terms is not a good idea imo; I've already spewed out
many sentences explaining the difference between subvolumes and
snapshots, ie. that there is none... adding another term only adds to
this problem; they each describe the same thing, but differentiate
based on origin or current state, neither of which actually describe
what it _is_-- a new named pointer to a tree, like a git branch -- a
subvolume.

I think a better solution/compromise would be to leave snapshots
writeable by default, since that's more true to what's happening
internally anyway, but maybe introduce a mount option controlling the
default action for that mount point.

C Anthony [mobile]

  reply	other threads:[~2010-11-30  0:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-29 20:02 Default to read-only on snapshot creation and have a flag if snapshot should be writable (was: [PATCH 0/5] btrfs: Readonly snapshots) Mike Fedyk
2010-11-29 20:41 ` David Arendt
2010-11-29 21:08   ` Mike Fedyk
2010-11-29 21:31     ` Andrey Kuzmin
2010-11-29 21:43       ` Mike Fedyk
2010-11-29 21:48         ` Andrey Kuzmin
2010-11-30  0:33           ` C Anthony Risinger [this message]
2010-11-30  2:17             ` Li Zefan
2010-11-30 12:44               ` Andrey Kuzmin

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=6742321336526268697@unknownmsgid \
    --to=anthony@extof.me \
    --cc=admin@prnet.org \
    --cc=andrey.v.kuzmin@gmail.com \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=mfedyk@mikefedyk.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.