From: Bjoern Jacke Date: Thu, 31 Jan 2019 18:01:36 +0000 (-0600) Subject: sysquotas.h: collect more platform quotablock sizes X-Git-Tag: ldb-1.6.1~108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2eca1a6676401bdb33c53e3d435cc4f88e1eae26;p=thirdparty%2Fsamba.git sysquotas.h: collect more platform quotablock sizes Signed-off-by: Bjoern Jacke Reviewed-by: Uri Simchoni --- 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 */