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

tss at dovecot.org tss at dovecot.org
Tue Feb 20 12:00:05 UTC 2007


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

Modified Files:
      Tag: branch_1_0
	quota-fs.c 
Log Message:
Linux quota v1 apparently returns current quota in kilobytes, not bytes as
v2.



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.14.2.10
retrieving revision 1.14.2.11
diff -u -d -r1.14.2.10 -r1.14.2.11
--- quota-fs.c	5 Feb 2007 12:11:26 -0000	1.14.2.10
+++ quota-fs.c	20 Feb 2007 12:00:02 -0000	1.14.2.11
@@ -238,7 +238,11 @@
 			return -1;
 		}
 
+#if _LINUX_QUOTA_VERSION == 1
+		*value_r = dqblk.dqb_curblocks;
+#else
 		*value_r = dqblk.dqb_curblocks / 1024;
+#endif
 		*limit_r = dqblk.dqb_bsoftlimit;
 	}
 #elif defined(HAVE_QUOTACTL)



More information about the dovecot-cvs mailing list