From ca3e6f1d2053dbd282611af07a69fd4553193a6f Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Thu, 26 Aug 2004 15:38:10 +0000 Subject: Fixed grace time setting - now it's set at exceeding, not at reaching softlimit (Jan Kara) --- quotaops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'quotaops.c') 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 #include @@ -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; } -- cgit v1.2.3