As far as I examined, the first argument of "get quota" command is always ".". It is hardly to determine which partition should be checked, using the 1st argument ".". The level3 log is below: ----- [2008/12/30 17:24:39, 3] lib/sysquotas.c:command_get_quota(214) get_quota: Running command /usr/local/samba/bin/query_quota "." 2 1000 ----- This script is run by "guest account", so usually we need something like setuid to access the quota information.
Created attachment 6046 [details] Patch for Samba 3.5.6 Still left in Samba 3.5.6... To apply this, the 1st argument of "get quota command" is changed to "bdev" friendly for quotactl(2). The log output is also changed from ----- [2010/11/01 11:21:08.488200, 3] lib/sysquotas.c:214(command_get_quota) get_quota: Running command /usr/local/samba/bin/getquota "." 2 1001 ----- to ----- [2010/11/01 11:38:02.785570, 3] lib/sysquotas.c:214(command_get_quota) get_quota: Running command /usr/local/samba/bin/getquota "/dev/mapper/vg01-lvo l2" 2 1001 -----
hmm. The "." is intended actually. The current working directory is the path that you are probably looking for. If you use a script and you want to get the full path - does it fit your needs to just see what "pwd" gives you?
closing this now. if it doesn't work this way for you, feel free to reopen this bug.