From: Li Zefan <lizf@cn.fujitsu.com>
To: "linux-btrfs@vger.kernel.org" <linux-btrfs@vger.kernel.org>
Subject: [PATCH v3 0/3] Btrfs: Readonly snapshots
Date: Thu, 23 Dec 2010 16:15:16 +0800 [thread overview]
Message-ID: <4D130514.9080704@cn.fujitsu.com> (raw)
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(-)
next reply other threads:[~2010-12-23 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-23 8:15 Li Zefan [this message]
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
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=4D130514.9080704@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=linux-btrfs@vger.kernel.org \
/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.