[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c, 1.14.2.7, 1.14.2.8

cras at dovecot.org cras at dovecot.org
Fri Aug 11 01:03:24 EEST 2006


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

Modified Files:
      Tag: branch_1_0
	quota-fs.c 
Log Message:
Check for XFS quota also from xfs/xqm.h



Index: quota-fs.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/plugins/quota/quota-fs.c,v
retrieving revision 1.14.2.7
retrieving revision 1.14.2.8
diff -u -d -r1.14.2.7 -r1.14.2.8
--- quota-fs.c	10 Aug 2006 17:45:43 -0000	1.14.2.7
+++ quota-fs.c	10 Aug 2006 22:03:22 -0000	1.14.2.8
@@ -18,6 +18,10 @@
 #include <sys/stat.h>
 #ifdef HAVE_LINUX_DQBLK_XFS_H
 #  include <linux/dqblk_xfs.h>
+#  define HAVE_XFS_QUOTA
+#elif defined (HAVE_XFS_XQM_H)
+#  include <xfs/xqm.h> /* CentOS 4.x at least uses this */
+#  define HAVE_XFS_QUOTA
 #endif
 
 #ifndef DEV_BSIZE
@@ -196,7 +200,7 @@
 
 #if defined (HAVE_QUOTACTL) && defined(HAVE_SYS_QUOTA_H)
 	/* Linux */
-#ifdef HAVE_LINUX_DQBLK_XFS_H
+#ifdef HAVE_XFS_QUOTA
 	if (strcmp(root->mount->type, "xfs") == 0) {
 		/* XFS */
 		struct fs_disk_quota xdqblk;



More information about the dovecot-cvs mailing list