public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: nscott@aconex.com
To: Arkadiusz Miskiewicz <arekm@maven.pl>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_quota report
Date: Fri, 25 Apr 2008 14:10:55 +1000 (EST)	[thread overview]
Message-ID: <34168.192.168.3.1.1209096655.squirrel@mail.aconex.com> (raw)
In-Reply-To: <200804250049.34740.arekm@maven.pl>

> 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

      parent reply	other threads:[~2008-04-25  4:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-24 22:49 xfs_quota report Arkadiusz Miskiewicz
2008-04-24 23:13 ` Chris Wedgwood
2008-04-25  4:10 ` nscott [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34168.192.168.3.1.1209096655.squirrel@mail.aconex.com \
    --to=nscott@aconex.com \
    --cc=arekm@maven.pl \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox