diff options
author | jkar8572 <jkar8572> | 2004-08-26 15:38:10 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2004-08-26 15:38:10 +0000 |
commit | ca3e6f1d2053dbd282611af07a69fd4553193a6f (patch) | |
tree | cf1e776518d8b2a2e1cbb8f14e328d3b4ff34aae /quotaops.c | |
parent | 787ea6b6dfb6db7c0249269e349b723f0a6c3277 (diff) |
Fixed grace time setting - now it's set at exceeding, not at reaching softlimit (Jan Kara)
Diffstat (limited to 'quotaops.c')
-rw-r--r-- | quotaops.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |