linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Btrfs: Readonly snapshots
@ 2010-12-23  8:15 Li Zefan
  2010-12-23  8:15 ` [PATCH v3 1/3] Btrfs: Refactor btrfs_ioctl_snap_create() Li Zefan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Li Zefan @ 2010-12-23  8:15 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

This patchset adds readonly-snapshots support. You can create a
readonly snapshot, and you can also set a snapshot (subvolume also)
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.

The patchset is also available in:
	git://repo.or.cz/linux-btrfs-devel.git readonly-snapshots

---
 fs/btrfs/ctree.h       |    7 ++
 fs/btrfs/inode.c       |    8 ++
 fs/btrfs/ioctl.c       |  199 ++++++++++++++++++++++++++++++++++++------------
 fs/btrfs/ioctl.h       |    3 +
 fs/btrfs/transaction.c |    8 ++
 fs/btrfs/transaction.h |    1 +
 fs/btrfs/xattr.c       |   18 +++++
 7 files changed, 195 insertions(+), 49 deletions(-)

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

end of thread, other threads:[~2010-12-23  8:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  8:15 [PATCH v3 0/3] Btrfs: Readonly snapshots Li Zefan
2010-12-23  8:15 ` [PATCH v3 1/3] Btrfs: Refactor btrfs_ioctl_snap_create() Li Zefan
2010-12-23  8:15 ` [PATCH v3 2/3] Btrfs: Add readonly snapshots support Li Zefan
2010-12-23  8:16 ` [PATCH v3 3/3] Btrfs: Add BTRFS_IOC_SUBVOL_GETFLAGS/SETFLAGS ioctls Li Zefan

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