aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/quota.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2008-07-25 01:46:52 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 10:53:35 -0700
commit657d3bfa98e542271b449f8cd84c7501ae2b2255 (patch)
tree1e618dfbb055f2508aca8f0e503e0b525f2b4d0b /include/linux/quota.h
parent03b063436ca1076301de58d9d628f610ab5404ad (diff)
downloadkernel_samsung_aries-657d3bfa98e542271b449f8cd84c7501ae2b2255.zip
kernel_samsung_aries-657d3bfa98e542271b449f8cd84c7501ae2b2255.tar.gz
kernel_samsung_aries-657d3bfa98e542271b449f8cd84c7501ae2b2255.tar.bz2
quota: implement sending information via netlink about user below quota
Sometimes it may be useful for userspace to know (e.g. for some hosting guys) that some user stopped exceeding his hardlimit or softlimit in quotas. Implement sending of such events to userspace via quota netlink protocol so that they don't have to poll for such events. Based on idea and initial implementation by Vladislav Bogdanov. Cc: Vladislav Bogdanov <slava@nsys.by> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/quota.h')
-rw-r--r--include/linux/quota.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/quota.h b/include/linux/quota.h
index 4e004fe..376a050 100644
--- a/include/linux/quota.h
+++ b/include/linux/quota.h
@@ -135,6 +135,10 @@ struct if_dqinfo {
#define QUOTA_NL_BHARDWARN 4 /* Block hardlimit reached */
#define QUOTA_NL_BSOFTLONGWARN 5 /* Block grace time expired */
#define QUOTA_NL_BSOFTWARN 6 /* Block softlimit reached */
+#define QUOTA_NL_IHARDBELOW 7 /* Usage got below inode hardlimit */
+#define QUOTA_NL_ISOFTBELOW 8 /* Usage got below inode softlimit */
+#define QUOTA_NL_BHARDBELOW 9 /* Usage got below block hardlimit */
+#define QUOTA_NL_BSOFTBELOW 10 /* Usage got below block softlimit */
enum {
QUOTA_NL_C_UNSPEC,