linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Default to read-only on snapshot creation and have a flag if snapshot should be writable (was: [PATCH 0/5] btrfs: Readonly snapshots)
@ 2010-11-29 20:02 Mike Fedyk
  2010-11-29 20:41 ` David Arendt
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Fedyk @ 2010-11-29 20:02 UTC (permalink / raw)
  To: Li Zefan; +Cc: linux-btrfs, Sage Weil

On Mon, Nov 29, 2010 at 12:02 AM, Li Zefan <lizf@cn.fujitsu.com> wrote:
> (Cc: Sage Weil <sage@newdream.net> for changes in async snapshots)
>
> This patchset adds readonly-snapshots support. You can create a
> readonly snapshot, and you can also set a snapshot readonly/writable
> on the fly.
>
> A few readonly checks are added in setattr, permission, remove_xattr
> and set_xattr callbacks, as well as in some ioctls.
>

Great work!

I have a suggestion on defaults when snapshots are created.  I think
they should default to being read-only and if they are meant to be
read-write a flag can be set at creation time (and changable at a
later time as well of course).

This way user/admin preconceptions of a snapshot being read-only can
be enforced by default, and the exception when you want a read-write
snapshot can be available with a switch at the cli level (and probably
a flag at the ioctl level).

It gives one more natural distinction between a snapshot and a
subvolume at the user conceptual level.

What do you think?

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

end of thread, other threads:[~2010-11-30 12:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-11-30  2:17             ` Li Zefan
2010-11-30 12:44               ` Andrey Kuzmin

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