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.
This commit is contained in:
Mike Pritchard 2007-02-03 11:20:28 +00:00
parent 952a9714bd
commit db957a6fba
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=166458

View File

@ -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;