summaryrefslogtreecommitdiffstats
path: root/source/smbd/quotas.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-07-10 01:15:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:24 -0500
commitcb435543f84955be75368a3294bc6b627414d876 (patch)
tree84cb36878b66364e5e6a180134eb15c7a170ee1e /source/smbd/quotas.c
parentd0e89d246d8e5e64196d6c1d16d39a70579ca42f (diff)
downloadsamba-cb435543f84955be75368a3294bc6b627414d876.tar.gz
samba-cb435543f84955be75368a3294bc6b627414d876.tar.xz
samba-cb435543f84955be75368a3294bc6b627414d876.zip
r23786: Use linux/dqblk_xfs.h rather than a private copy of this header in the
Samba3 tree. This is neater, plus it avoids the need to get legal approval from SGI to use their GPLv2-only code under GPLv3. If/when SGI legal sort things out, we could consider adding back this header for very old systems where linux/dqblk_xfs.h is not available.
Diffstat (limited to 'source/smbd/quotas.c')
-rw-r--r--source/smbd/quotas.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/source/smbd/quotas.c b/source/smbd/quotas.c
index 271f3b5d969..1f30acef33c 100644
--- a/source/smbd/quotas.c
+++ b/source/smbd/quotas.c
@@ -61,7 +61,6 @@ BOOL disk_quotas_vxfs(const pstring name, char *path, SMB_BIG_UINT *bsize, SMB_B
*/
#include "samba_linux_quota.h"
-#include "samba_xfs_quota.h"
typedef struct _LINUX_SMB_DISK_QUOTA {
SMB_BIG_UINT bsize;
@@ -73,6 +72,10 @@ typedef struct _LINUX_SMB_DISK_QUOTA {
SMB_BIG_UINT curinodes; /* Current used inodes. */
} LINUX_SMB_DISK_QUOTA;
+
+#ifdef HAVE_LINUX_DQBLK_XFS_H
+#include <linux/dqblk_xfs.h>
+
/****************************************************************************
Abstract out the XFS Quota Manager quota get call.
****************************************************************************/
@@ -102,6 +105,15 @@ static int get_smb_linux_xfs_quota(char *path, uid_t euser_id, gid_t egrp_id, LI
return ret;
}
+#else
+static int get_smb_linux_xfs_quota(char *path, uid_t euser_id, gid_t egrp_id, LINUX_SMB_DISK_QUOTA *dp)
+{
+ DEBUG(0,("XFS quota support not available\n"));
+ errno = ENOSYS;
+ return -1;
+}
+#endif
+
/****************************************************************************
Abstract out the old and new Linux quota get calls.