summaryrefslogtreecommitdiff
path: root/source3/lib/sysquotas.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-08-06 10:21:09 +0200
committerMichael Adam <obnox@samba.org>2010-08-25 14:05:51 +0200
commit3add3aa17de7954b01e2c9273295195438ac30e5 (patch)
tree7a3aec15f6395110d420eb96c1a9accc1989b9e8 /source3/lib/sysquotas.c
parent896f3c8a49864ff022ac2d32a81f5b4ce53fd16b (diff)
downloadsamba-3add3aa17de7954b01e2c9273295195438ac30e5.tar.gz
samba-3add3aa17de7954b01e2c9273295195438ac30e5.tar.bz2
samba-3add3aa17de7954b01e2c9273295195438ac30e5.zip
s3:smbd: add a nfs backend for sysquotas.
This module is based on the Solaris/FreeBSD implementation of NFS quotas in the quotas.c module. It implements the SMB_USER_QUOTA_TYPE query of the get_quotas call. The other types and the set_quota call are not implemented.
Diffstat (limited to 'source3/lib/sysquotas.c')
-rw-r--r--source3/lib/sysquotas.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c
index 3d4697c7dc..6abafbd768 100644
--- a/source3/lib/sysquotas.c
+++ b/source3/lib/sysquotas.c
@@ -177,6 +177,9 @@ static struct {
#ifdef HAVE_XFS_QUOTAS
{"xfs", sys_get_xfs_quota, sys_set_xfs_quota},
#endif /* HAVE_XFS_QUOTAS */
+#ifdef HAVE_NFS_QUOTAS
+ {"nfs", sys_get_nfs_quota, sys_set_nfs_quota},
+#endif /* HAVE_NFS_QUOTAS */
{NULL, NULL, NULL}
};