diff options
author | Bjoern Jacke <bj@sernet.de> | 2019-01-31 12:01:36 -0600 |
---|---|---|
committer | Bjoern Jacke <bjacke@samba.org> | 2019-02-17 13:33:13 +0100 |
commit | 2eca1a6676401bdb33c53e3d435cc4f88e1eae26 (patch) | |
tree | d0b89acec5d15ada88b53976da20f28d53e6897b /source3 | |
parent | 56c198c0056d57e767ab67bc4bbcab11afbc8f05 (diff) | |
download | samba-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.h | 10 |
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 */ |