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
41#define BTRFS_UUID_SIZE 1641#define BTRFS_UUID_SIZE 16
42#define BTRFS_UUID_UNPARSED_SIZE 3742#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
46struct btrfs_qgroup_limit {58struct 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
54struct btrfs_qgroup_inherit {74struct btrfs_qgroup_inherit {
55 __u64 flags;75 __u64 flags;
56 __u64 num_qgroups;76 __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