samba-3.0.9-1.3E.7 When using samba after having implemented quotas: [2006/01/18 05:50:03, 3] lib/sysquotas.c:sys_get_quota(413) sys_get_vfs_quota() failed for mntpath[/test] bdev[/dev/VolGroup01/testlv] qtype[2] id[10056]: Invalid argument [2006/01/18 05:50:03, 3] smbd/reply.c:reply_dskattr(785) dskattr dfree=58104 [2006/01/18 05:50:03, 5] lib/util.c:show_msg(486) [2006/01/18 05:50:03, 5] lib/util.c:show_msg(496) To be able to support both quota v1 and v2, samba is defined its own constants for the cmd part of quotactl()'s QCMD. However, the v2 constants in the system headers and samba don't match. In source/include/samba_linux_quota.h: #ifndef Q_V2_GETQUOTA #define Q_V2_GETQUOTA 0x0D00 #endif #ifndef Q_V2_SETQUOTA #define Q_V2_SETQUOTA 0x0E00 #endif And in sys/quota.h: # define Q_GETQUOTA 0x800007 /* get user quota structure */ # define Q_SETQUOTA 0x800008 /* set user quota structure */ Patch attached.
Created attachment 123778 [details] samba-unbreak-v2-quota-support.patch
The problem also exists with RHEL4 and upstream: http://websvn.samba.org/cgi-bin/viewcvs.cgi/branches/SAMBA_3_0/source/include/samba_linux_quota.h?rev=3&view=markup Upstream BZ: https://bugzilla.samba.org/show_bug.cgi?id=3456
This issue is on Red Hat Engineering's list of planned work items for the upcoming Red Hat Enterprise Linux 3.8 release. Engineering resources have been assigned and barring unforeseen circumstances, Red Hat intends to include this item in the 3.8 release.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0364.html