summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/relocation.c
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2010-12-20 09:30:25 +0100
committerLi Zefan <lizf@cn.fujitsu.com>2010-12-23 01:49:19 +0100
commit0caa102da82799efaba88e234484786a9591c797 (patch)
tree748bb0d8054bb85256904ffe29913277e5b80684 /fs/btrfs/relocation.c
parentBtrfs: Add readonly snapshots support (diff)
downloadlinux-0caa102da82799efaba88e234484786a9591c797.tar.xz
linux-0caa102da82799efaba88e234484786a9591c797.zip
Btrfs: Add BTRFS_IOC_SUBVOL_GETFLAGS/SETFLAGS ioctls
This allows us to set a snapshot or a subvolume readonly or writable on the fly. Usage: Set BTRFS_SUBVOL_RDONLY of btrfs_ioctl_vol_arg_v2->flags, and then call ioctl(BTRFS_IOCTL_SUBVOL_SETFLAGS); Changelog for v3: - Change to pass __u64 as ioctl parameter. Changelog for v2: - Add _GETFLAGS ioctl. - Check if the passed fd is the root of a subvolume. - Change the name from _SNAP_SETFLAGS to _SUBVOL_SETFLAGS. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Diffstat (limited to 'fs/btrfs/relocation.c')
0 files changed, 0 insertions, 0 deletions