Li Zefan
b83cc9693f
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>
2010-12-23 08:49:17 +08:00
..
2010-06-11 14:18:47 -07:00
2010-05-25 10:34:58 -04:00
2009-10-05 09:44:45 -04:00
2010-05-25 10:34:52 -04:00
2009-01-06 09:38:55 -05:00
2010-11-21 22:26:03 -05:00
2008-10-29 14:49:59 -04:00
2010-10-29 15:14:37 -04:00
2010-12-23 08:49:17 +08:00
2010-05-25 10:34:50 -04:00
2010-05-25 10:34:50 -04:00
2010-10-29 15:14:31 -04:00
2010-12-13 14:47:58 -05:00
2010-05-25 10:34:58 -04:00
2010-11-21 22:26:08 -05:00
2008-09-25 11:04:06 -04:00
2010-11-27 13:37:50 -05:00
2010-11-21 22:26:03 -05:00
2010-10-29 15:14:23 -04:00
2009-09-18 16:08:52 -04:00
2010-12-13 20:07:01 -05:00
2010-05-25 10:34:57 -04:00
2010-12-10 16:29:10 -05:00
2010-12-09 13:57:12 -05:00
2010-10-29 09:26:35 -04:00
2009-06-10 11:29:53 -04:00
2010-05-25 10:34:50 -04:00
2009-09-21 15:56:00 -04:00
2010-12-23 08:49:17 +08:00
2010-12-23 08:49:17 +08:00
2010-12-23 08:49:17 +08:00
2009-12-17 13:23:24 -08:00
2010-03-30 22:02:32 +09:00
2009-03-09 11:45:38 -04:00
2009-06-10 11:29:46 -04:00
2010-11-28 19:56:33 -05:00
2010-11-28 19:56:33 -05:00
2010-12-09 13:57:15 -05:00
2009-07-22 16:52:13 -04:00
2008-09-25 11:03:56 -04:00
2010-03-30 22:02:32 +09:00
2010-03-08 16:26:50 -05:00
2010-10-29 15:14:31 -04:00
2010-10-29 15:14:37 -04:00
2009-01-05 21:25:51 -05:00
2010-12-10 16:29:10 -05:00
2010-03-07 17:04:49 -08:00
2010-12-23 08:49:17 +08:00
2010-12-23 08:49:17 +08:00
2010-10-29 15:14:37 -04:00
2010-11-21 22:26:09 -05:00
2010-05-25 10:34:53 -04:00
2008-09-25 15:41:59 -04:00
2008-11-19 21:17:22 -05:00
2010-12-13 20:06:52 -05:00
2010-12-13 20:06:52 -05:00
2010-12-23 08:49:17 +08:00
2010-05-21 18:31:18 -04:00
2010-10-29 15:14:37 -04:00