From ee2d6ae1480496c89f483cc3613f025a9342b6ab Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 7 Sep 2012 13:13:49 +0200 Subject: s3:quota: clean up and consolidate the xfs quota checks and defines MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User(master): Björn Jacke Autobuild-Date(master): Fri Sep 7 15:59:46 CEST 2012 on sn-devel-104 --- source3/lib/sysquotas.c | 2 +- source3/lib/sysquotas_xfs.c | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index 55d4730ab3..76f66a779e 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -172,7 +172,7 @@ static struct { int (*get_quota)(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp); int (*set_quota)(const char *path, const char *bdev, enum SMB_QUOTA_TYPE qtype, unid_t id, SMB_DISK_QUOTA *dp); } sys_quota_backends[] = { -#if defined HAVE_XFS_QUOTAS || defined HAVE_LINUX_XFS_QUOTAS +#if defined HAVE_XFS_QUOTAS {"xfs", sys_get_xfs_quota, sys_set_xfs_quota}, #endif /* HAVE_XFS_QUOTAS */ #ifdef HAVE_NFS_QUOTAS diff --git a/source3/lib/sysquotas_xfs.c b/source3/lib/sysquotas_xfs.c index c0df85d6c9..cf77eace97 100644 --- a/source3/lib/sysquotas_xfs.c +++ b/source3/lib/sysquotas_xfs.c @@ -23,18 +23,20 @@ #undef DBGC_CLASS #define DBGC_CLASS DBGC_QUOTA -#if defined(HAVE_SYS_QUOTAS) && (defined(HAVE_XFS_QUOTAS) || defined(HAVE_LINUX_XFS_QUOTAS)) +#if defined(HAVE_SYS_QUOTAS) && defined(HAVE_XFS_QUOTAS) + +#ifdef HAVE_SYS_QUOTA_H +#include +#endif + +/* this one should actually come from glibc: */ +/* #include "samba_linux_quota.h" */ -#ifdef HAVE_LINUX_XFS_QUOTAS -#include "samba_linux_quota.h" #ifdef HAVE_XFS_XQM_H #include #endif #define HAVE_GROUP_QUOTA -#else /* IRIX */ -#include -#endif /* on IRIX */ #ifndef Q_XQUOTAON -- cgit