diff options
author | mpp <mpp@FreeBSD.org> | 2007-02-03 11:08:48 +0000 |
---|---|---|
committer | mpp <mpp@FreeBSD.org> | 2007-02-03 11:08:48 +0000 |
commit | 7b2d300b597c52bccecd3f14b881e2d27304686e (patch) | |
tree | 2c82dd8629856a790210b91cc5da04fc91e8012f /sbin/quotacheck | |
parent | de9e7e731d97a9a49a56a4b05c020a95cdb21d38 (diff) | |
download | FreeBSD-src-7b2d300b597c52bccecd3f14b881e2d27304686e.zip FreeBSD-src-7b2d300b597c52bccecd3f14b881e2d27304686e.tar.gz |
Fix quotqcheck to correctly use the curinode count, and not the
curblock count when checking if the inode soft limit has been
crossed.
Diffstat (limited to 'sbin/quotacheck')
-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 deaacae..4573a08 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -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; |