> xfs_quota -x -c "report" by default walks passwd and displays quota only
> users found there.
Yep. Its quite lame really (all quota implementations I'm aware of do this).
> I wonder if there is a better way to get information about uid/gids that
> any files on xfs filesystem? So report command could be enhanced to
> such "users", too.
There is a better way. No code exists to do it, but its been a long-standing
RFE that a new quotactl command be implement to do this - it would be a
bit like the XFS bulkstat interface, but instead of passing out the-next-big-
bunch-of-inode-stat-data-in-bulk-from-some-arbitary-inode, it would
pass out the next-big-bunch-of-dquot-data-in-bulk-from-some-id.
The idea being you would call it iteratively from userspace starting from id
zero, until it tells you you've reached the end, and the kernel would pass
out all valid dquots.
> Right now the only option is to use report -L0 -Usome_very_high_number
> with a
> hope that the number will always be high enough.
Heh, yeah, thats pretty ordinary. Your mission, should you choose to accept