summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--quota.h1
-rw-r--r--quota_nld.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/quota.h b/quota.h
index 6787eab..0c38427 100644
--- a/quota.h
+++ b/quota.h
@@ -11,6 +11,7 @@ typedef int64_t qsize_t; /* Type in which we store size limitations */
#define MAXQUOTAS 2
#define USRQUOTA 0 /* element used for user quotas */
#define GRPQUOTA 1 /* element used for group quotas */
+#define PRJQUOTA 2 /* element used for project quotas */
/*
* Definitions for the default names of the quotas files.
diff --git a/quota_nld.c b/quota_nld.c
index ad5c57e..ea541e0 100644
--- a/quota_nld.c
+++ b/quota_nld.c
@@ -165,7 +165,7 @@ static int quota_nl_parser(struct nl_msg *msg, void *arg)
warn.dev_minor = nla_get_u32(attrs[QUOTA_NL_A_DEV_MINOR]);
warn.caused_id = nla_get_u64(attrs[QUOTA_NL_A_CAUSED_ID]);
- if (!(flags & FL_NOCONSOLE))
+ if (!(flags & FL_NOCONSOLE) && warn.qtype != PRJQUOTA)
write_console_warning(&warn);
if (!(flags & FL_NODBUS))
write_dbus_warning(dhandle, &warn);