diff options
author | mpp <mpp@FreeBSD.org> | 2007-02-03 11:20:28 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 2007-02-03 11:20:28 +0000 |
commit | e8eebb5a1057c17845750a85db49b43baf6a981c (patch) | |
tree | 39a5dcfbda32dfe9705509aeecc29b113f0e7020 /sbin/quotacheck/quotacheck.c | |
parent | 7b2d300b597c52bccecd3f14b881e2d27304686e (diff) | |
download | FreeBSD-src-e8eebb5a1057c17845750a85db49b43baf6a981c.zip FreeBSD-src-e8eebb5a1057c17845750a85db49b43baf6a981c.tar.gz |
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.
Diffstat (limited to 'sbin/quotacheck/quotacheck.c')
-rw-r--r-- | sbin/quotacheck/quotacheck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 4573a08..90d8954 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; |