[Samba] quota support in samba

Christoph Klein christophk at cip.wiwi.uni-karlsruhe.de
Mon Mar 21 14:27:55 GMT 2005


Hi,
We have a samba server with quota enforced on our mounts. linux tools
like repquota, quota and edquota work, but samba cant retrieve quota
information from the fs. i think the interesting log lines are as
follows:
[2005/03/21 15:01:46, 10]
lib/sysquotas_linux.c:sys_get_linux_gen_quota(316)
  sys_get_linux_gen_quota: path[/home] bdev[/dev/sda3]
  SMB_USER_QUOTA_TYPE uid[2 0692]
[2005/03/21 15:01:46, 10]
  lib/sysquotas_linux.c:sys_get_linux_gen_quota(319)
  errno 3
  sys_get_linux_v2_quota: path[/home] bdev[/dev/sda3]
  SMB_USER_QUOTA_TYPE uid[20692]
[2005/03/21 15:01:46, 10]
  lib/sysquotas_linux.c:sys_get_linux_v2_quota(184)
  errno 22
  sys_get_linux_v1_quota: path[/home] bdev[/dev/sda3]
  SMB_USER_QUOTA_TYP E uid[20692]
[2005/03/21 15:01:46, 10]
  lib/sysquotas_linux.c:sys_get_linux_v1_quota(49)
  errno 22
  sys_get_vfs_quota() failed for mntpath[/home]
  bdev[/dev/sda3] qtype[2] id[20692]: Invalid argument

my smbd is compiled withe the following options:
smbd -b | grep -i quota:
   HAVE_SYS_QUOTA_H
   HAVE_LINUX_XFS_QUOTAS
   HAVE_QUOTACTL_LINUX
   HAVE_SYS_QUOTAS
   HAVE_XFS_QUOTAS
   WITH_QUOTAS
   WITH_QUOTAS
   vfs_default_quota_init


does anyone of you have a similar problem?

thanks in advance

christoph


More information about the samba mailing list