From: anserper Date: Thu, 28 Aug 2008 12:25:37 +0000 (+0000) Subject: Branch b1_8_gate X-Git-Tag: v1_7_100~1^264~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=cb810d4474f96b3bd63a1784f0c651631e335110;p=fs%2Flustre-release.git Branch b1_8_gate b=16646 i=ZhiYong Tian (tianzy@sun.com) i=Sergey Glushchenko (deen@sun.com) i=Johann Lombardi (johann@sun.com) lfs to put * when limit is reached --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index d81d0d1..c6769f0 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -1939,10 +1939,10 @@ static void print_quota(char *mnt, struct if_quotactl *qctl, int type) struct obd_dqblk *dqb = &qctl->qc_dqblk; if (dqb->dqb_bhardlimit && - toqb(dqb->dqb_curspace) > dqb->dqb_bhardlimit) { + toqb(dqb->dqb_curspace) >= dqb->dqb_bhardlimit) { bover = 1; } else if (dqb->dqb_bsoftlimit && - toqb(dqb->dqb_curspace) > dqb->dqb_bsoftlimit) { + toqb(dqb->dqb_curspace) >= dqb->dqb_bsoftlimit) { if (dqb->dqb_btime > now) { bover = 2; } else { @@ -1951,10 +1951,10 @@ static void print_quota(char *mnt, struct if_quotactl *qctl, int type) } if (dqb->dqb_ihardlimit && - dqb->dqb_curinodes > dqb->dqb_ihardlimit) { + dqb->dqb_curinodes >= dqb->dqb_ihardlimit) { iover = 1; } else if (dqb->dqb_isoftlimit && - dqb->dqb_curinodes > dqb->dqb_isoftlimit) { + dqb->dqb_curinodes >= dqb->dqb_isoftlimit) { if (dqb->dqb_btime > now) { iover = 2; } else {