[vhffs-dev] [767] Fixes quota on blockdevices

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 767
Author:   gradator
Date:     2007-08-18 15:52:40 +0000 (Sat, 18 Aug 2007)

Log Message:
-----------
Fixes quota on blockdevices

Modified Paths:
--------------
    trunk/vhffs-fs/vhffsfs.c


Modified: trunk/vhffs-fs/vhffsfs.c
===================================================================
--- trunk/vhffs-fs/vhffsfs.c	2007-08-17 17:46:32 UTC (rev 766)
+++ trunk/vhffs-fs/vhffsfs.c	2007-08-18 15:52:40 UTC (rev 767)
@@ -736,7 +736,7 @@
 	if(quotactl(QCMD(Q_GETQUOTA, GRPQUOTA), blockdev, gid, (caddr_t)&dq)) {
 		return -errno;
 	} else {
-		if(dq.dqb_curspace > dq.dqb_bhardlimit  ||  dq.dqb_curinodes > dq.dqb_ihardlimit)  return 1;
+		if(dq.dqb_curspace >> 10 > dq.dqb_bhardlimit  ||  dq.dqb_curinodes > dq.dqb_ihardlimit)  return 1;
 	}
 	return 0;
 }


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/