[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FW: [ linuxquota-Bugs-449992 ] repquota reporting
hi,
On Thu, Aug 23, 2001 at 10:51:19AM -0400, Robert Carsey wrote:
> I had initially posted this to sourceforge. repquota command only
> returns those UIDs which are in /etc/passwd. Feature or bug? My server
> ONLY runs
> as an nfs server, which means 99% of my UIDs are foreign to the system
> and are unresolvable. Of course, when putting a quota on a UID, it does
> work fine -- its just not listed in repquota.
>
> The quota maintainers replied:
> This is a feature as on XFS quota utilities have no
> possibility to get list of users with quotas and so
> utilities just take users from passwd.
>
>
> Is this true? Can we do something about this? I don't remember running
> into this on SGI machines...
>
Yes, this is true. To be 100% accurate, one would say that
"repquota [for XFS] returns only those UIDs returned from the
getpwent(3) function" - since getpwent will also lookup passwd
entries via NIS if configured, it is not quite true to say that
it _only_ looks in /etc/passwd.
All of the above is also true on IRIX. It seems the original
author had considered this problem, and in IRIX left a place-
holder quotactl command "Q_BULKQSTAT" which I imagine would,
had it been implemented, have been able to walk through quota
files on XFS without needing this getpwent crutch.
Would be an interesting little project to implement this for
XFS on Linux if you're interested... just a simple matter of
programming. Another fix would be to use something like NIS
to ensure the uid:name mapping is available to the server.
cheers.
--
Nathan