public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: "Rynhart, Patrick" <P.Rynhart@massey.ac.nz>
Cc: "'xfs@oss.sgi.com'" <xfs@oss.sgi.com>
Subject: Re: Programmatically query default XFS Quota ?
Date: Fri, 5 Aug 2016 09:37:32 +1000	[thread overview]
Message-ID: <20160804233732.GA16044@dastard> (raw)
In-Reply-To: <839565DD1303AC4993B245FFDB34AF78510C9C8F@tur-exch-node1.massey.ac.nz>

On Thu, Aug 04, 2016 at 10:48:32PM +0000, Rynhart, Patrick wrote:
> Hi,
> 
> I can set a default quota on a file system as follows:
> 
> xfs_quota -x -c 'limit bsoft=100m bhard=100m -d' /home
> 
> But I'm not sure how to query this - can anyone advise ?

Default quotas are recorded in the limits of ID 0. UID 0/GID 0 are
not actually limited (though we do account their usage) so we store
the default limits for everyone there. IIRC, you should be able to
view the default user quota limits via the "quota -uv 0" command.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      parent reply	other threads:[~2016-08-04 23:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-04 22:48 Programmatically query default XFS Quota ? Rynhart, Patrick
2016-08-04 23:23 ` Vincent McIntyre
2016-08-04 23:37 ` Dave Chinner [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=20160804233732.GA16044@dastard \
    --to=david@fromorbit.com \
    --cc=P.Rynhart@massey.ac.nz \
    --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