summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjoern Jacke <bj@sernet.de>2019-01-31 12:01:36 -0600
committerBjoern Jacke <bjacke@samba.org>2019-02-17 13:33:13 +0100
commit2eca1a6676401bdb33c53e3d435cc4f88e1eae26 (patch)
treed0b89acec5d15ada88b53976da20f28d53e6897b /source3
parent56c198c0056d57e767ab67bc4bbcab11afbc8f05 (diff)
downloadsamba-2eca1a6676401bdb33c53e3d435cc4f88e1eae26.tar.gz
sysquotas.h: collect more platform quotablock sizes
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/include/sysquotas.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/include/sysquotas.h b/source3/include/sysquotas.h
index 71d5e9b2640..7ba631e4e76 100644
--- a/source3/include/sysquotas.h
+++ b/source3/include/sysquotas.h
@@ -69,7 +69,17 @@ typedef struct _SMB_DISK_QUOTA {
} SMB_DISK_QUOTA;
#ifndef QUOTABLOCK_SIZE
+#if defined(DQBSIZE) /* AIX */
+#define QUOTABLOCK_SIZE DQBSIZE
+#elif defined(QIF_DQBLKSIZE) /* Linux */
+#define QUOTABLOCK_SIZE QIF_DQBLKSIZE
+#elif defined(HAVE_STRUCT_DQBLK_DQB_CURBYTES) /*Darwin */
+#define QUOTABLOCK_SIZE 1
+#elif defined(HAVE_UFS_UFS_QUOTA_H) /* BSDs */
+#define QUOTABLOCK_SIZE 512
+#else
#define QUOTABLOCK_SIZE 1024
#endif
+#endif /* QUOTABLOCK_SIZE */
#endif /*_SYSQUOTAS_H */