From 7b2d300b597c52bccecd3f14b881e2d27304686e Mon Sep 17 00:00:00 2001 From: mpp Date: Sat, 3 Feb 2007 11:08:48 +0000 Subject: Fix quotqcheck to correctly use the curinode count, and not the curblock count when checking if the inode soft limit has been crossed. --- sbin/quotacheck/quotacheck.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/quotacheck') 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; -- cgit v1.1