Fix quotqcheck to correctly use the curinode count, and not the

curblock count when checking if the inode soft limit has been
crossed.
This commit is contained in:
Mike Pritchard 2007-02-03 11:08:48 +00:00
parent c57086ced7
commit 952a9714bd

View File

@ -493,8 +493,8 @@ update(fsname, quotafile, type)
fup->fu_curblocks >= dqbuf.dqb_bsoftlimit)
dqbuf.dqb_btime = 0;
if (dqbuf.dqb_isoftlimit &&
dqbuf.dqb_curblocks < dqbuf.dqb_isoftlimit &&
fup->fu_curblocks >= dqbuf.dqb_isoftlimit)
dqbuf.dqb_curinodes < dqbuf.dqb_isoftlimit &&
fup->fu_curinodes >= dqbuf.dqb_isoftlimit)
dqbuf.dqb_itime = 0;
dqbuf.dqb_curinodes = fup->fu_curinodes;
dqbuf.dqb_curblocks = fup->fu_curblocks;