aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pritchard <mpp@FreeBSD.org>2007-02-03 11:20:28 +0000
committerMike Pritchard <mpp@FreeBSD.org>2007-02-03 11:20:28 +0000
commitdb957a6fba4004d50d1ea97a599b6d5380296cfc (patch)
tree39a5dcfbda32dfe9705509aeecc29b113f0e7020
parent952a9714bd48fe2548cd8c5232d244f3c3ba260a (diff)
downloadsrc-db957a6fba4004d50d1ea97a599b6d5380296cfc.tar.gz
src-db957a6fba4004d50d1ea97a599b6d5380296cfc.zip
Do not touch the block or i-node grace times for id 0.
These are used to indicate the default grace period for the file system, and should not be touched by quotacheck.
Notes
Notes: svn path=/head/; revision=166458
-rw-r--r--sbin/quotacheck/quotacheck.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c
index 4573a0818fe3..90d895457fe7 100644
--- a/sbin/quotacheck/quotacheck.c
+++ b/sbin/quotacheck/quotacheck.c
@@ -488,11 +488,11 @@ update(fsname, quotafile, type)
* Reset time limit if have a soft limit and were
* previously under it, but are now over it.
*/
- if (dqbuf.dqb_bsoftlimit &&
+ if (dqbuf.dqb_bsoftlimit && id != 0 &&
dqbuf.dqb_curblocks < dqbuf.dqb_bsoftlimit &&
fup->fu_curblocks >= dqbuf.dqb_bsoftlimit)
dqbuf.dqb_btime = 0;
- if (dqbuf.dqb_isoftlimit &&
+ if (dqbuf.dqb_isoftlimit && id != 0 &&
dqbuf.dqb_curinodes < dqbuf.dqb_isoftlimit &&
fup->fu_curinodes >= dqbuf.dqb_isoftlimit)
dqbuf.dqb_itime = 0;