History

btrfs: uapi/linux/btrfs.h migration, qgroup limit flags

The BTRFS_QGROUP_LIMIT_* flags are required to tell the kernel which fields are valid when using the BTRFS_IOC_QGROUP_LIMIT ioctl.

Jeff Mahoney committed 10 years ago

Commit 83288b61 parent d4ae1332 files · +21 −9Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/btrfs.h+21−1
@@ -41,7 +41,19 @@ struct btrfs_ioctl_vol_args { · 40 unmodified lines
4141 #define BTRFS_UUID_SIZE 16
4242 #define BTRFS_UUID_UNPARSED_SIZE 37
4343
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)
4557
4658 struct btrfs_qgroup_limit {
4759 __u64 flags;
@@ -51,6 +63,14 @@ struct btrfs_qgroup_limit { · 3 unmodified lines
5163 __u64 rsv_excl;
5264 };
5365
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+
5474 struct btrfs_qgroup_inherit {
5575 __u64 flags;
5676 __u64 num_qgroups;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t