xfs_quota report
Hello,
xfs_quota -x -c "report" by default walks passwd and displays quota only for users found there.
I wonder if there is a better way to get information about uid/gids that have any files on xfs filesystem? So report command could be enhanced to display such "users", too.
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.
Signature · 2 lines
Arkadiusz Miśkiewicz PLD/Linux Team arekm / maven.pl http://ftp.pld-linux.org/
Quoted 3 lines · Arkadiusz Miskiewicz
I wonder if there is a better way to get information about uid/gids that have any files on xfs filesystem? So report command could be enhanced to display such "users", too.
bulkstat would be one way to get a list of all uid/gids in use, it could be very large though
(i know of installations where uid/gid values are used outside of /etc/passwd and NIS/ldap that number in the millions, though, well, that's not such a large number these days)
Quoted 5 lines
Hello,
xfs_quota-x -c "report" by default walks passwd and displays quota only for
users found there.
Yep. Its quite lame really (all quota implementations I'm aware of do this).
Quoted 5 lines
I wonder if there is a better way to get information about uid/gids that have
any files on xfs filesystem? So report command could be enhanced to display
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.
Quoted 3 lines
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 it...
cheers.
--
Nathan