diff options
author | Mike Pritchard <mpp@FreeBSD.org> | 2007-02-03 11:08:48 +0000 |
---|---|---|
committer | Mike Pritchard <mpp@FreeBSD.org> | 2007-02-03 11:08:48 +0000 |
commit | 952a9714bd48fe2548cd8c5232d244f3c3ba260a (patch) | |
tree | 2c82dd8629856a790210b91cc5da04fc91e8012f /sbin/quotacheck/quotacheck.c | |
parent | c57086ced711fc707e8c1ab1c52b4a75324c81e8 (diff) | |
download | src-952a9714bd48fe2548cd8c5232d244f3c3ba260a.tar.gz src-952a9714bd48fe2548cd8c5232d244f3c3ba260a.zip |
Fix quotqcheck to correctly use the curinode count, and not the
curblock count when checking if the inode soft limit has been
crossed.
Notes
Notes:
svn path=/head/; revision=166457
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 deaacae7cba3..4573a0818fe3 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; |