summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changelog2
-rw-r--r--quotaops.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/Changelog b/Changelog
index 178ae33..9c833c3 100644
--- a/Changelog
+++ b/Changelog
@@ -1,4 +1,6 @@
Changes in quota-tools from 3.12 to 3.13
+* fixed quota tools to set of grace time only after exceeding soft limit, not
+ at reaching (Jan Kara)
* fixed exit codes of setquota(8) and edquota(8) (Jan Kara)
* updated Polish translations (Jakub Bogusz)
diff --git a/quotaops.c b/quotaops.c
index 68e03d5..f699f3d 100644
--- a/quotaops.c
+++ b/quotaops.c
@@ -34,7 +34,7 @@
#ident "$Copyright: (c) 1980, 1990 Regents of the University of California. $"
#ident "$Copyright: All rights reserved. $"
-#ident "$Id: quotaops.c,v 1.14 2004/05/24 19:39:15 jkar8572 Exp $"
+#ident "$Id: quotaops.c,v 1.15 2004/08/26 15:38:10 jkar8572 Exp $"
#include <rpc/rpc.h>
#include <sys/types.h>
@@ -72,13 +72,13 @@ void update_grace_times(struct dquot *q)
time_t now;
time(&now);
- if (q->dq_dqb.dqb_bsoftlimit && toqb(q->dq_dqb.dqb_curspace) >= q->dq_dqb.dqb_bsoftlimit) {
+ if (q->dq_dqb.dqb_bsoftlimit && toqb(q->dq_dqb.dqb_curspace) > q->dq_dqb.dqb_bsoftlimit) {
if (!q->dq_dqb.dqb_btime)
q->dq_dqb.dqb_btime = now + q->dq_h->qh_info.dqi_bgrace;
}
else
q->dq_dqb.dqb_btime = 0;
- if (q->dq_dqb.dqb_isoftlimit && q->dq_dqb.dqb_curinodes >= q->dq_dqb.dqb_isoftlimit) {
+ if (q->dq_dqb.dqb_isoftlimit && q->dq_dqb.dqb_curinodes > q->dq_dqb.dqb_isoftlimit) {
if (!q->dq_dqb.dqb_itime)
q->dq_dqb.dqb_itime = now + q->dq_h->qh_info.dqi_igrace;
}