The BTRFS_QGROUP_LIMIT_* flags are required to tell the kernel which fields are valid when using the BTRFS_IOC_QGROUP_LIMIT ioctl.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -41,7 +41,19 @@ struct btrfs_ioctl_vol_args { · 40 unmodified lines | |||
| 41 | #define BTRFS_UUID_SIZE 16 | 41 | #define BTRFS_UUID_SIZE 16 |
| 42 | #define BTRFS_UUID_UNPARSED_SIZE 37 | 42 | #define BTRFS_UUID_UNPARSED_SIZE 37 |
| 43 | 43 | ||
| 44 | #define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0) | 44 | /* |
| 45 | * flags definition for qgroup limits | ||
| 46 | * | ||
| 47 | * Used by: | ||
| 48 | * struct btrfs_qgroup_limit.flags | ||
| 49 | * struct btrfs_qgroup_limit_item.flags | ||
| 50 | */ | ||
| 51 | #define BTRFS_QGROUP_LIMIT_MAX_RFER (1ULL << 0) | ||
| 52 | #define BTRFS_QGROUP_LIMIT_MAX_EXCL (1ULL << 1) | ||
| 53 | #define BTRFS_QGROUP_LIMIT_RSV_RFER (1ULL << 2) | ||
| 54 | #define BTRFS_QGROUP_LIMIT_RSV_EXCL (1ULL << 3) | ||
| 55 | #define BTRFS_QGROUP_LIMIT_RFER_CMPR (1ULL << 4) | ||
| 56 | #define BTRFS_QGROUP_LIMIT_EXCL_CMPR (1ULL << 5) | ||
| 45 | 57 | ||
| 46 | struct btrfs_qgroup_limit { | 58 | struct btrfs_qgroup_limit { |
| 47 | __u64 flags; | 59 | __u64 flags; |
| @@ -51,6 +63,14 @@ struct btrfs_qgroup_limit { · 3 unmodified lines | |||
| 51 | __u64 rsv_excl; | 63 | __u64 rsv_excl; |
| 52 | }; | 64 | }; |
| 53 | 65 | ||
| 66 | /* | ||
| 67 | * flags definition for qgroup inheritance | ||
| 68 | * | ||
| 69 | * Used by: | ||
| 70 | * struct btrfs_qgroup_inherit.flags | ||
| 71 | */ | ||
| 72 | #define BTRFS_QGROUP_INHERIT_SET_LIMITS (1ULL << 0) | ||
| 73 | |||
| 54 | struct btrfs_qgroup_inherit { | 74 | struct btrfs_qgroup_inherit { |
| 55 | __u64 flags; | 75 | __u64 flags; |
| 56 | __u64 num_qgroups; | 76 | __u64 num_qgroups; |