Bug 6003 - "get quota command" cannot determine which partition to check.
Summary: "get quota command" cannot determine which partition to check.
Alias: None
Product: Samba 3.2
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.2.6
Hardware: x86 Linux
: P3 minor
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
Depends on:
Reported: 2008-12-30 02:46 UTC by TAKAHASHI Motonobu
Modified: 2012-09-24 14:09 UTC (History)
0 users

See Also:

Patch for Samba 3.5.6 (771 bytes, patch)
2010-11-03 09:55 UTC, TAKAHASHI Motonobu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description TAKAHASHI Motonobu 2008-12-30 02:46:03 UTC
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.
Comment 1 TAKAHASHI Motonobu 2010-11-03 09:55:53 UTC
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


[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
Comment 2 Björn Jacke 2012-09-06 10:08:59 UTC
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?
Comment 3 Björn Jacke 2012-09-24 14:09:06 UTC
closing this now. if it doesn't work this way for you, feel free to reopen this bug.