[dovecot-cvs] dovecot/src/plugins/quota quota-fs.c,1.23,1.24
cras at dovecot.org
cras at dovecot.org
Fri Aug 11 01:03:32 EEST 2006
Update of /var/lib/cvs/dovecot/src/plugins/quota
In directory talvi:/tmp/cvs-serv26838/src/plugins/quota
Modified Files:
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.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- quota-fs.c 10 Aug 2006 17:46:08 -0000 1.23
+++ quota-fs.c 10 Aug 2006 22:03:29 -0000 1.24
@@ -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
@@ -203,7 +207,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