diff options
author | Arne Jansen <sensille@gmx.net> | 2011-09-14 09:53:51 -0400 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-07-12 04:54:39 -0400 |
commit | 5d13a37bd5327220e13329943d1228acfbe5934a (patch) | |
tree | 4d50268f569454798adb46d1e1984c0e53d5ba26 /fs/btrfs/ioctl.h | |
parent | c556723794b3487a79de1ecd6354975b1389f5ff (diff) |
Btrfs: add qgroup ioctls
Ioctls to control the qgroup feature like adding and
removing qgroups and assigning qgroups.
Signed-off-by: Arne Jansen <sensille@gmx.net>
Diffstat (limited to 'fs/btrfs/ioctl.h')
-rw-r--r-- | fs/btrfs/ioctl.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/fs/btrfs/ioctl.h b/fs/btrfs/ioctl.h index a8a2230f4c5c..9dd50c4656b3 100644 --- a/fs/btrfs/ioctl.h +++ b/fs/btrfs/ioctl.h | |||
@@ -319,6 +319,25 @@ struct btrfs_ioctl_get_dev_stats { | |||
319 | __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */ | 319 | __u64 unused[128 - 2 - BTRFS_DEV_STAT_VALUES_MAX]; /* pad to 1k */ |
320 | }; | 320 | }; |
321 | 321 | ||
322 | #define BTRFS_QUOTA_CTL_ENABLE 1 | ||
323 | #define BTRFS_QUOTA_CTL_DISABLE 2 | ||
324 | #define BTRFS_QUOTA_CTL_RESCAN 3 | ||
325 | struct btrfs_ioctl_quota_ctl_args { | ||
326 | __u64 cmd; | ||
327 | __u64 status; | ||
328 | }; | ||
329 | |||
330 | struct btrfs_ioctl_qgroup_assign_args { | ||
331 | __u64 assign; | ||
332 | __u64 src; | ||
333 | __u64 dst; | ||
334 | }; | ||
335 | |||
336 | struct btrfs_ioctl_qgroup_create_args { | ||
337 | __u64 create; | ||
338 | __u64 qgroupid; | ||
339 | }; | ||
340 | |||
322 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ | 341 | #define BTRFS_IOC_SNAP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 1, \ |
323 | struct btrfs_ioctl_vol_args) | 342 | struct btrfs_ioctl_vol_args) |
324 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ | 343 | #define BTRFS_IOC_DEFRAG _IOW(BTRFS_IOCTL_MAGIC, 2, \ |
@@ -388,4 +407,12 @@ struct btrfs_ioctl_get_dev_stats { | |||
388 | #define BTRFS_IOC_GET_AND_RESET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 53, \ | 407 | #define BTRFS_IOC_GET_AND_RESET_DEV_STATS _IOWR(BTRFS_IOCTL_MAGIC, 53, \ |
389 | struct btrfs_ioctl_get_dev_stats) | 408 | struct btrfs_ioctl_get_dev_stats) |
390 | 409 | ||
410 | #define BTRFS_IOC_QUOTA_CTL _IOWR(BTRFS_IOCTL_MAGIC, 40, \ | ||
411 | struct btrfs_ioctl_quota_ctl_args) | ||
412 | #define BTRFS_IOC_QGROUP_ASSIGN _IOW(BTRFS_IOCTL_MAGIC, 41, \ | ||
413 | struct btrfs_ioctl_qgroup_assign_args) | ||
414 | #define BTRFS_IOC_QGROUP_CREATE _IOW(BTRFS_IOCTL_MAGIC, 42, \ | ||
415 | struct btrfs_ioctl_qgroup_create_args) | ||
416 | #define BTRFS_IOC_QGROUP_LIMIT _IOR(BTRFS_IOCTL_MAGIC, 43, \ | ||
417 | struct btrfs_ioctl_qgroup_limit_args) | ||
391 | #endif | 418 | #endif |