aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.h
diff options
context:
space:
mode:
authorArne Jansen <sensille@gmx.net>2012-06-28 12:03:02 -0400
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-07-12 04:54:21 -0400
commitbed92eae26ccf280d1a2168b7509447b56675a27 (patch)
tree4a852b27746dca2ab0b3646b7d7e050b93502bc5 /fs/btrfs/ioctl.h
parent709c0486b9fe9586736b108b7233bbce0300cfa5 (diff)
Btrfs: qgroup implementation and prototypes
Signed-off-by: Arne Jansen <sensille@gmx.net> Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r--fs/btrfs/ioctl.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h
index e440aa653c30..a8a2230f4c5c 100644
--- a/fs/btrfs/ioctl.h
+++ b/fs/btrfs/ioctl.h
@@ -35,6 +35,30 @@ struct btrfs_ioctl_vol_args {
35#define BTRFS_FSID_SIZE 16 35#define BTRFS_FSID_SIZE 16
36#define BTRFS_UUID_SIZE 16 36#define BTRFS_UUID_SIZE 16
37 37
38#define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0)
39
40struct btrfs_qgroup_limit {
41 __u64 flags;
42 __u64 max_rfer;
43 __u64 max_excl;
44 __u64 rsv_rfer;
45 __u64 rsv_excl;
46};
47
48struct btrfs_qgroup_inherit {
49 __u64 flags;
50 __u64 num_qgroups;
51 __u64 num_ref_copies;
52 __u64 num_excl_copies;
53 struct btrfs_qgroup_limit lim;
54 __u64 qgroups[0];
55};
56
57struct btrfs_ioctl_qgroup_limit_args {
58 __u64 qgroupid;
59 struct btrfs_qgroup_limit lim;
60};
61
38#define BTRFS_SUBVOL_NAME_MAX 4039 62#define BTRFS_SUBVOL_NAME_MAX 4039
39struct btrfs_ioctl_vol_args_v2 { 63struct btrfs_ioctl_vol_args_v2 {
40 __s64 fd; 64 __s64 fd;