[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c, 1.14.2.9, 1.14.2.10

tss at dovecot.org tss at dovecot.org
Mon Feb 5 12:11:28 UTC 2007


Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv8131

Modified Files:
      Tag: branch_1_0
	quota-fs.c 
Log Message:
BSD filesystem quota was counted wrong. Patch by Manuel Bouyer



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.14.2.9
retrieving revision 1.14.2.10
diff -u -d -r1.14.2.9 -r1.14.2.10
--- quota-fs.c	3 Dec 2006 16:15:10 -0000	1.14.2.9
+++ quota-fs.c	5 Feb 2007 12:11:26 -0000	1.14.2.10
@@ -250,8 +250,8 @@
 		quota_set_error(_root->setup->quota, "Internal quota error");
 		return -1;
 	}
-	*value_r = (uint64_t)dqblk.dqb_curblocks * 1024 / DEV_BSIZE;
-	*limit_r = (uint64_t)dqblk.dqb_bsoftlimit * 1024 / DEV_BSIZE;
+	*value_r = (uint64_t)dqblk.dqb_curblocks * DEV_BSIZE / 1024;
+	*limit_r = (uint64_t)dqblk.dqb_bsoftlimit * DEV_BSIZE / 1024;
 #else
 	/* Solaris */
 	if (root->mount->fd == -1)



More information about the dovecot-cvs mailing list