xfs
[Top] [All Lists]

Re: xfs_quota report

To: "Arkadiusz Miskiewicz" <arekm@xxxxxxxx>
Subject: Re: xfs_quota report
From: nscott@xxxxxxxxxx
Date: Fri, 25 Apr 2008 14:10:55 +1000 (EST)
Cc: xfs@xxxxxxxxxxx
Importance: Normal
In-reply-to: <200804250049.34740.arekm@xxxxxxxx>
References: <200804250049.34740.arekm@xxxxxxxx>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: SquirrelMail/1.4.8-4.el4.centos
> 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


<Prev in Thread] Current Thread [Next in Thread>