diff options
author | jkar8572 <jkar8572> | 2001-09-27 21:34:57 +0000 |
---|---|---|
committer | jkar8572 <jkar8572> | 2001-09-27 21:34:57 +0000 |
commit | 1f1b463eb250b98954c96837d880cc0e07e109aa (patch) | |
tree | fddf4986a37d15d5640a3115b2aac4fd4611a090 /quotaops.c | |
parent | 6cac7d8ee94d9262117e27df014a8b76ff889bde (diff) |
Implemented setting only limits by commit_dquot() so edquota & setquota can operate
safe on live filesystem.
Diffstat (limited to 'quotaops.c')
-rw-r--r-- | quotaops.c | 4 |
1 files changed, 2 insertions, 2 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.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 <rpc/rpc.h> #include <sys/types.h> @@ -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; |