[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c,1.26,1.27

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


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

Modified Files:
	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.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- quota-fs.c	22 Nov 2006 17:23:09 -0000	1.26
+++ quota-fs.c	20 Feb 2007 12:00:05 -0000	1.27
@@ -242,7 +242,11 @@
 			return -1;
 		}
 
+#if _LINUX_QUOTA_VERSION == 1
+		*value_r = dqblk.dqb_curblocks * 1024;
+#else
 		*value_r = dqblk.dqb_curblocks;
+#endif
 		*limit_r = dqblk.dqb_bsoftlimit * 1024;
 	}
 #elif defined(HAVE_QUOTACTL)



More information about the dovecot-cvs mailing list