]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
sysquota: we need to list nfs4 as a separate fs name for the sys_get_nfs_quota backend
authorBjörn Jacke <bj@sernet.de>
Thu, 6 Sep 2012 05:58:00 +0000 (07:58 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 11 Sep 2012 07:22:03 +0000 (09:22 +0200)
at least the Linux kernel up to 3.5.0 lists NFSv4 aѕ nfs4 and not as nfs
(cherry picked from commit a6df44b3ae1ca6395d05e1af804a779d785358db)

Fix bug #9144 - nfs quota support not working with Linux nfs4 mounts.

source3/lib/sysquotas.c

index 12c34edaa2c941b1add2ae1e9a0adc47f007d0a0..9fdf3a0472f1a40e7f4b1f51e1972e3f0531a058 100644 (file)
@@ -179,6 +179,7 @@ static struct {
 #endif /* HAVE_XFS_QUOTAS */
 #ifdef HAVE_NFS_QUOTAS
        {"nfs", sys_get_nfs_quota,      sys_set_nfs_quota},
+       {"nfs4", sys_get_nfs_quota,     sys_set_nfs_quota},
 #endif /* HAVE_NFS_QUOTAS */
        {NULL,  NULL,                   NULL}
 };