diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2010-12-20 09:04:08 +0100 |
---|---|---|
committer | Li Zefan <lizf@cn.fujitsu.com> | 2010-12-23 01:49:17 +0100 |
commit | b83cc9693f39689490970c19f6c5b866f6719a70 (patch) | |
tree | b86d09884015fce195a4ac5ff1e8ec5f6ec00677 /usr | |
parent | Btrfs: Refactor btrfs_ioctl_snap_create() (diff) | |
download | linux-b83cc9693f39689490970c19f6c5b866f6719a70.tar.xz linux-b83cc9693f39689490970c19f6c5b866f6719a70.zip |
Btrfs: Add readonly snapshots support
Usage:
Set BTRFS_SUBVOL_RDONLY of btrfs_ioctl_vol_arg_v2->flags, and call
ioctl(BTRFS_I0CTL_SNAP_CREATE_V2).
Implementation:
- Set readonly bit of btrfs_root_item->flags.
- Add readonly checks in btrfs_permission (inode_permission),
btrfs_setattr, btrfs_set/remove_xattr and some ioctls.
Changelog for v3:
- Eliminate btrfs_root->readonly, but check btrfs_root->root_item.flags.
- Rename BTRFS_ROOT_SNAP_RDONLY to BTRFS_ROOT_SUBVOL_RDONLY.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions