From 1f1b463eb250b98954c96837d880cc0e07e109aa Mon Sep 17 00:00:00 2001 From: jkar8572 Date: Thu, 27 Sep 2001 21:34:57 +0000 Subject: Implemented setting only limits by commit_dquot() so edquota & setquota can operate safe on live filesystem. --- quotaops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'quotaops.c') diff --git a/quotaops.c b/quotaops.c index 338cdf3..71628d4 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.6 2001/08/22 21:17:56 jkar8572 Exp $" +#ident "$Id: quotaops.c,v 1.7 2001/09/27 21:34:58 jkar8572 Exp $" #include #include @@ -176,7 +176,7 @@ int putprivs(struct dquot *qlist) struct dquot *q; for (q = qlist; q; q = q->dq_next) { - if (q->dq_h->qh_ops->commit_dquot(q) == -1) { + if (q->dq_h->qh_ops->commit_dquot(q, COMMIT_LIMITS) == -1) { errstr(_("Can't write quota for %u on %s: %s\n"), q->dq_id, q->dq_h->qh_quotadev, strerror(errno)); continue; -- cgit v1.2.3