summaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2014-11-19 09:21:58 +0100
committerJan Kara <jack@suse.cz>2015-01-21 19:21:30 +0100
commit9c45101e88b2bf2ce36b8833fcfa784a9149aa74 (patch)
tree6444ff15cb9c5a41c156510d7670f5c47f053867 /include/uapi
parent96827adcc2d0eed3fdf7f88e73a50a83b23def96 (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')
-rw-r--r--include/uapi/linux/quota.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/uapi/linux/quota.h b/include/uapi/linux/quota.h
index 3b6cfbeb086..1f49b8341c9 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;
};