xfs
[Top] [All Lists]

Re: 2.4.2 - XFS kernel March 19th & quota

To: "Bas" <list@xxxxxxxxxxxxxx>, <linux-xfs@xxxxxxxxxxx>
Subject: Re: 2.4.2 - XFS kernel March 19th & quota
From: "Nathan Scott" <nathans@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Mar 2001 09:32:46 -0500
In-reply-to: "Bas" <list@showme.wox.org> "2.4.2 - XFS kernel March 19th & quota" (Mar 23, 10:31pm)
References: <006401c0b42c$072faea0$0f01a8c0@myplace.net>
Sender: owner-linux-xfs@xxxxxxxxxxx
hi,

On Mar 23, 10:31pm, Bas wrote:
> Subject: 2.4.2 - XFS kernel March 19th & quota
> Hi,
> 
> I'm running XFS with quota support and it works, but I can't seem to find
> (checked the man pages and the documentation that comes with the cvs-tree)
> the block size that is used when setting quota. I thought is 1024 B now, but
> am I wrong ?
> 

That's correct - the user tools work with a blocksize of
1024 bytes.  The quotactl system call, once it gets into
the XFS quota manager code, manipulates 512 byte blocks,
so there are conversions done in the user tools.  I have
sometimes found it useful to use the "quot" tool to cross
reference the block counts reported by the tools - this
tool doesn't use the quotactl syscall but instead walks
the filesystem and totals user block counts, then reports
in 1024 byte units also.

There was also a recent change (couple of weeks ago) to the
kernel and userspace tools in this regard, so if you're
seeing unexpected block count values, its likely that your
tools are out of sync with your kernel.

Before you grab new tools, wait for my next message (later
today) on the new version of the quota tools.  These will
include the "quot" utility I referred to above.

cheers.

-- 
Nathan

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