aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Mahoney <jeffm@suse.com>2016-04-01 16:14:25 -0400
committerDavid Sterba <dsterba@suse.com>2016-04-28 05:06:41 -0400
commit884f6eca59475bc3cad5c22360523a1261bd5597 (patch)
tree72e8f652703a6d7a66fa46db57c4f9ad1a1afbf4
parent83288b60bf6668933689078973136e0c9d387b38 (diff)
btrfs: uapi/linux/btrfs.h migration, document subvol flags
Signed-off-by: Jeff Mahoney <jeffm@suse.com> Reviewed-by: Liu Bo <bo.li.liu@oracle.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--include/uapi/linux/btrfs.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/uapi/linux/btrfs.h b/include/uapi/linux/btrfs.h
index 9651af3c46a1..0316e23b32cc 100644
--- a/include/uapi/linux/btrfs.h
+++ b/include/uapi/linux/btrfs.h
@@ -34,9 +34,6 @@ struct btrfs_ioctl_vol_args {
34 34
35#define BTRFS_DEVICE_PATH_NAME_MAX 1024 35#define BTRFS_DEVICE_PATH_NAME_MAX 1024
36 36
37#define BTRFS_SUBVOL_CREATE_ASYNC (1ULL << 0)
38#define BTRFS_SUBVOL_RDONLY (1ULL << 1)
39#define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2)
40#define BTRFS_FSID_SIZE 16 37#define BTRFS_FSID_SIZE 16
41#define BTRFS_UUID_SIZE 16 38#define BTRFS_UUID_SIZE 16
42#define BTRFS_UUID_UNPARSED_SIZE 37 39#define BTRFS_UUID_UNPARSED_SIZE 37
@@ -85,6 +82,20 @@ struct btrfs_ioctl_qgroup_limit_args {
85 struct btrfs_qgroup_limit lim; 82 struct btrfs_qgroup_limit lim;
86}; 83};
87 84
85/*
86 * flags for subvolumes
87 *
88 * Used by:
89 * struct btrfs_ioctl_vol_args_v2.flags
90 *
91 * BTRFS_SUBVOL_RDONLY is also provided/consumed by the following ioctls:
92 * - BTRFS_IOC_SUBVOL_GETFLAGS
93 * - BTRFS_IOC_SUBVOL_SETFLAGS
94 */
95#define BTRFS_SUBVOL_CREATE_ASYNC (1ULL << 0)
96#define BTRFS_SUBVOL_RDONLY (1ULL << 1)
97#define BTRFS_SUBVOL_QGROUP_INHERIT (1ULL << 2)
98
88#define BTRFS_SUBVOL_NAME_MAX 4039 99#define BTRFS_SUBVOL_NAME_MAX 4039
89struct btrfs_ioctl_vol_args_v2 { 100struct btrfs_ioctl_vol_args_v2 {
90 __s64 fd; 101 __s64 fd;