Hi,

I have a strange problem with user quotas enabled on a xfs filesystem and samba 3.0.21c: When a standard block device (e.g. /dev/sdc1) is used for the fs, quota works like expected:

/dev/sdc1 on /mnt/tmp type xfs (rw,usrquota)

output from level quota:10 debug:

[2006/04/19 14:38:48, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:38:48, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(93)
sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/sdc1] SMB_USER_QUOTA_TYPE uid[4004]
[2006/04/19 14:38:48, 10] lib/sysquotas.c:sys_get_quota(404)
sys_get_xfs_quota() called for mntpath[/mnt/tmp] bdev[/dev/sdc1] qtype[2] id[4004].


But when a logical volume is used for the fs, it doesn't work, and the clients windows explorer reports the size of the complete fs instead of the users quota:

/dev/export/lvol0 on /mnt/tmp type xfs (rw,usrquota)

output from level quota:10 debug:

[2006/04/19 14:33:57, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:33:57, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(93)
sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/export/lvol0] SMB_USER_QUOTA_TYPE uid[4004]
[2006/04/19 14:33:57, 3] lib/sysquotas.c:sys_get_quota(401)
sys_get_xfs_quota() failed for mntpath[/mnt/tmp] bdev[/dev/export/lvol0] qtype[2] id[4004]: Permission denied.
[2006/04/19 14:33:57, 10] lib/sysquotas.c:sys_get_quota(394)
  sys_get_quota() uid(4004, 4004)
[2006/04/19 14:33:57, 10] lib/sysquotas_xfs.c:sys_get_xfs_quota(101)
sys_get_xfs_quota: path[/mnt/tmp] bdev[/dev/export/lvol0] SMB_GROUP_QUOTA_TYPE gid[4000]
[2006/04/19 14:33:57, 3] lib/sysquotas.c:sys_get_quota(401)
sys_get_xfs_quota() failed for mntpath[/mnt/tmp] bdev[/dev/export/lvol0] qtype[4] id[4000]: Permission denied.


What may be the cause for this "Permission denied" message? Permissions for /mnt/tmp are 777. Shouldn't samba operate independently of the filesystems underlying device?
Thanks for your support!

Christoph

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Reply via email to