]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:sysquota_xfs: fix logic so that we actually use this module on Linux
authorBjörn Jacke <bj@sernet.de>
Thu, 6 Sep 2012 15:00:54 +0000 (17:00 +0200)
committerBjoern Jacke <bj@sernet.de>
Fri, 7 Sep 2012 12:15:57 +0000 (14:15 +0200)
source3/lib/sysquotas.c
source3/lib/sysquotas_xfs.c

index cbacc7bad05c3160557331ae379d88dd9f29d15f..55d4730ab3d8fe5e39d2d6b0f566e8c2e549f8ec 100644 (file)
@@ -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[] = {
-#ifdef HAVE_XFS_QUOTAS
+#if defined HAVE_XFS_QUOTAS || defined HAVE_LINUX_XFS_QUOTAS
        {"xfs", sys_get_xfs_quota,      sys_set_xfs_quota},
 #endif /* HAVE_XFS_QUOTAS */
 #ifdef HAVE_NFS_QUOTAS
index 7da40efd9b243ae3c13879aaa14120485f48bcd7..c0df85d6c9f2a6937c0141cb57f25c282b4f6986 100644 (file)
 #undef DBGC_CLASS
 #define DBGC_CLASS DBGC_QUOTA
 
-#ifndef HAVE_SYS_QUOTAS
-#ifdef HAVE_XFS_QUOTAS
-#undef HAVE_XFS_QUOTAS
-#endif
-#endif
-
-#ifdef HAVE_XFS_QUOTAS
+#if defined(HAVE_SYS_QUOTAS) && (defined(HAVE_XFS_QUOTAS) || defined(HAVE_LINUX_XFS_QUOTAS))
 
 #ifdef HAVE_LINUX_XFS_QUOTAS
 #include "samba_linux_quota.h"