public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs_quota report
@ 2008-04-24 22:49 Arkadiusz Miskiewicz
  2008-04-24 23:13 ` Chris Wedgwood
  2008-04-25  4:10 ` nscott
  0 siblings, 2 replies; 3+ messages in thread
From: Arkadiusz Miskiewicz @ 2008-04-24 22:49 UTC (permalink / raw)
  To: xfs

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.
-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfs_quota report
  2008-04-24 22:49 xfs_quota report Arkadiusz Miskiewicz
@ 2008-04-24 23:13 ` Chris Wedgwood
  2008-04-25  4:10 ` nscott
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wedgwood @ 2008-04-24 23:13 UTC (permalink / raw)
  To: Arkadiusz Miskiewicz; +Cc: xfs

On Fri, Apr 25, 2008 at 12:49:34AM +0200, Arkadiusz Miskiewicz wrote:

> 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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: xfs_quota report
  2008-04-24 22:49 xfs_quota report Arkadiusz Miskiewicz
  2008-04-24 23:13 ` Chris Wedgwood
@ 2008-04-25  4:10 ` nscott
  1 sibling, 0 replies; 3+ messages in thread
From: nscott @ 2008-04-25  4:10 UTC (permalink / raw)
  To: Arkadiusz Miskiewicz; +Cc: xfs

> 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).

> 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.

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-25  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 22:49 xfs_quota report Arkadiusz Miskiewicz
2008-04-24 23:13 ` Chris Wedgwood
2008-04-25  4:10 ` nscott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox