Whamcloud - gitweb
Branch b1_8_gate
authoranserper <anserper>
Thu, 28 Aug 2008 12:25:37 +0000 (12:25 +0000)
committeranserper <anserper>
Thu, 28 Aug 2008 12:25:37 +0000 (12:25 +0000)
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

lustre/utils/lfs.c

index d81d0d1..c6769f0 100644 (file)
@@ -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 {