Skip to content

Btrfs: Readonly snapshots

Li Zefan linux-btrfs 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/23 patches 0 repliesNew
  2. v3 posting 1/21 patch 0 repliesSuperseded
  3. v25 patches 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches7 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Btrfs: Refactor btrfs_ioctl_snap_create()fs/btrfs/ioctl.c+40 -440 replies
2/3Btrfs: Add readonly snapshots supportfs/btrfs/ctree.h fs/btrfs/inode.c fs/btrfs/ioctl.c +4 more+75 -100 replies
3/3Btrfs: Add BTRFS_IOC_SUBVOL_GETFLAGS/SETFLAGS ioctlsfs/btrfs/ioctl.c fs/btrfs/ioctl.h+85 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Btrfs: Readonly snapshots

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