diff options
author | Alexander Bokovoy <ab@samba.org> | 2003-07-29 18:07:13 +0000 |
---|---|---|
committer | Alexander Bokovoy <ab@samba.org> | 2003-07-29 18:07:13 +0000 |
commit | 428653ef7257240e9318f5fed71869f0124ff379 (patch) | |
tree | 92632072eeb4b38a578a55afc9b4f240c03c2dde /source3/include | |
parent | 79a5d2e31bd1d5711d4fe7f9161abfc4ff81e7af (diff) | |
download | samba-428653ef7257240e9318f5fed71869f0124ff379.tar.gz samba-428653ef7257240e9318f5fed71869f0124ff379.tar.bz2 samba-428653ef7257240e9318f5fed71869f0124ff379.zip |
Add NT quotas support. Users allowed now to manage quotas on systems with sysquotas interface detected (Linux at least) using native Windows tools. Also move default quota support for NT quotas to VFS module default_quota. Code by Metze
(This used to be commit e856a96c2c42c39843e5e1a3a6b0d538e7179900)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/sysquotas.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/include/sysquotas.h b/source3/include/sysquotas.h index cfdac0609a..b803e6277a 100644 --- a/source3/include/sysquotas.h +++ b/source3/include/sysquotas.h @@ -189,6 +189,22 @@ #define SMB_QUOTAS_NO_LIMIT ((SMB_BIG_UINT)(0)) #define SMB_QUOTAS_NO_SPACE ((SMB_BIG_UINT)(1)) +#define SMB_QUOTAS_SET_NO_LIMIT(dp) \ +{\ + (dp)->softlimit = SMB_QUOTAS_NO_LIMIT;\ + (dp)->hardlimit = SMB_QUOTAS_NO_LIMIT;\ + (dp)->isoftlimit = SMB_QUOTAS_NO_LIMIT;\ + (dp)->ihardlimit = SMB_QUOTAS_NO_LIMIT;\ +} + +#define SMB_QUOTAS_SET_NO_SPACE(dp) \ +{\ + (dp)->softlimit = SMB_QUOTAS_NO_SPACE;\ + (dp)->hardlimit = SMB_QUOTAS_NO_SPACE;\ + (dp)->isoftlimit = SMB_QUOTAS_NO_SPACE;\ + (dp)->ihardlimit = SMB_QUOTAS_NO_SPACE;\ +} + typedef struct _SMB_DISK_QUOTA { enum SMB_QUOTA_TYPE qtype; SMB_BIG_UINT bsize; |