diff options
author | Jan Kara <jack@suse.cz> | 2014-11-19 09:21:58 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2015-01-21 19:21:30 +0100 |
commit | 9c45101e88b2bf2ce36b8833fcfa784a9149aa74 (patch) | |
tree | 6444ff15cb9c5a41c156510d7670f5c47f053867 /include/uapi/linux/quota.h | |
parent | 96827adcc2d0eed3fdf7f88e73a50a83b23def96 (diff) |
quota: Cleanup flags definitions
Currently all quota flags were defined just in kernel-private headers.
Export flags readable / writeable from userspace to userspace via
include/uapi/linux/quota.h.
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'include/uapi/linux/quota.h')
-rw-r--r-- | include/uapi/linux/quota.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/quota.h b/include/uapi/linux/quota.h index 3b6cfbeb086d..1f49b8341c99 100644 --- a/include/uapi/linux/quota.h +++ b/include/uapi/linux/quota.h @@ -126,10 +126,22 @@ struct if_dqblk { #define IIF_FLAGS 4 #define IIF_ALL (IIF_BGRACE | IIF_IGRACE | IIF_FLAGS) +enum { + DQF_ROOT_SQUASH_B = 0, + DQF_SYS_FILE_B = 16, + /* Kernel internal flags invisible to userspace */ + DQF_PRIVATE +}; + +/* Root squash enabled (for v1 quota format) */ +#define DQF_ROOT_SQUASH (1 << DQF_ROOT_SQUASH_B) +/* Quota stored in a system file */ +#define DQF_SYS_FILE (1 << DQF_SYS_FILE_B) + struct if_dqinfo { __u64 dqi_bgrace; __u64 dqi_igrace; - __u32 dqi_flags; + __u32 dqi_flags; /* DFQ_* */ __u32 dqi_valid; }; |