From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 00/10] quotactl fixed and cleanups Date: Tue, 16 Feb 2010 16:54:38 -0500 Message-ID: <20100216215438.GA23628@infradead.org> References: <20100216084446.377980079@bombadil.infradead.org> <20100216183627.GC3153@quack.suse.cz> <20100216191207.GA3856@infradead.org> <20100216212634.GI3153@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org, swhiteho@redhat.com, xfs@oss.sgi.com To: Jan Kara Return-path: Received: from bombadil.infradead.org ([18.85.46.34]:51191 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933311Ab0BPVyj (ORCPT ); Tue, 16 Feb 2010 16:54:39 -0500 Content-Disposition: inline In-Reply-To: <20100216212634.GI3153@quack.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue, Feb 16, 2010 at 10:26:34PM +0100, Jan Kara wrote: > The semantics I've chosen for OCFS2 is that if "USRQUOTA" filesystem > feature is enabled, we always do accounting of users' usage (as this is > essntially filesystem metadata). 'usrquota' mount option is just ignored > and used only to make life easier to quota-tools (so that they don't have > to parse superblock to find whether quota is supported or not). Enforcement > is enabled / disabled by quotactl call. > I'd eventually love to convert ext3/4 to this behavior as well (and move > quota files to be invisible "system" inodes) so if XFS would be consistent > with this, it would be nice. XFS is almost but not quite consistant with that. XFS has mount options for accounting and enforcement, but no superblock bit yet. Accounting always needs to be enabled at mount time, and enforcement can be enabled/disabled with quotactl / xfs_quota in addition to the mount option. We have been thinking about optionally also adding the superblock flag as that would make a lof of things easier, especially for quotas on the root filesystem.