xfs
[Top] [All Lists]

Re: How to enable quotas ?

To: Vincent Bernat <bernat@xxxxxxx>
Subject: Re: How to enable quotas ?
From: Steve Lord <lord@xxxxxxx>
Date: 14 Dec 2001 17:13:56 -0600
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <m33d2d2yba.fsf@neo.loria>
References: <m33d2d2yba.fsf@neo.loria>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Fri, 2001-12-14 at 17:10, Vincent Bernat wrote:
> I am trying to enable quotas on an XFS kernel. This is a 2.4.16.
> 
> # grep QUOTA .config
> CONFIG_QUOTA=y
> CONFIG_XFS_QUOTA=y
> # mount /home -o remount         
> # mount | grep home
> /dev/sda9 on /home type xfs (rw,usrquota)
> # quotacheck -V
> Quota utilities version 3.02.
> Compiled with RPC and EXT2_DIRECT
> Bugs to mvw@xxxxxxxxxxxxxxx, jack@xxxxxxx
> # quotacheck -avug
> [snip]
> quotacheck: Skipping /dev/sda9 [/home]
> [snip]
> quotacheck: Can't find filesystem to check or filesystem not mounted with 
> quota option.
> 
> What may be the problem ? Is there a particular step for using quotas
> with XFS ?

Quotas are maintained within xfs - and journalled, only if xfs detects a
problem at mount time is a quotacheck needed, and xfs does this itself
in the kernel. So basically the quotacheck command is not needed for
xfs.

To prove this, mount xfs with quotas - the first time it should print
some messages about building quota state. If you unmount and remount
with quotas it will do nothing, if you unmount and then remount without
quotas, then remount again with quotas it will perform the same check
again.

Steve


> -- 
> BOFH excuse #335:
> the AA battery in the wallclock sends magnetic interference
-- 

Steve Lord                                      voice: +1-651-683-3511
Principal Engineer, Filesystem Software         email: lord@xxxxxxx


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