public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Ted Ts'o <tytso@mit.edu>
Cc: Jan Kara <jack@suse.cz>, Aditya Kali <adityakali@google.com>,
	adilger@dilger.ca, dmonakhov@openvz.org,
	linux-ext4@vger.kernel.org
Subject: Re: Support for ext4 hidden quota inodes in quota-tools
Date: Wed, 23 Nov 2011 12:32:28 +0100	[thread overview]
Message-ID: <20111123113228.GB9775@quack.suse.cz> (raw)
In-Reply-To: <20111122235153.GA5167@thunk.org>

On Tue 22-11-11 18:51:53, Ted Tso wrote:
> On Tue, Nov 22, 2011 at 09:12:06PM +0100, Jan Kara wrote:
> > 
> >   this is just a heads up that I've modified quota tools to handle
> > quota files in hidden inodes for ext4. Current source code can be pulled
> > from git repository at sf.net: linuxquota.git.sourceforge.net
> 
> Could you give a quick summary of what the functionality the quota
> tools will have vis-a-vis the hidden inodes?  I assume things like
> repquota will work.  But will quotacheck work?  Quite frankly I'd much
> rather it didn't since then it might get confusing since some people
> might try to do the evil thing of running quota check on a live file
> system, with all of the races that might imply, versus using e2fsck to
> check and update the quota files as part of the fsck process.
> 
> Also, I had hoped to have the model where quota tracking would be
> enabled automatically when the file system was mounted, and there
> would not be a way of disabling quota tracking except when the file
> system was unmounted, so at least in theory the only way the quota
> files could get stale is if the file system was corrupted or modified
> directly via tools like e2tools or debugfs.  Presumably we'll be able
> to enforce this by having the kernel refuse the quotaoff quotactl
> request, but I just want to make sure the overall user experience
> between the kernel support, the e2fsprogs support, and the quota tools
> all come together in a way that's optimal for the sysadmin who will
> need to use all of this stuff.
  Sure. So quota-tools will provide functions like repquota(8), quota(1),
warnquota(1), setquota(8), and edquota(8) - i.e. editting of quota limits
and viewing of quota usage. Also quota_nld(8) will provide translation of
quota warnings coming via netlink into user visible messages on console (or
dbus messages).

  quotacheck(8) will just refuse to do anything when it detects a
filesystem with hidden quota files so that should be OK. Behavior of
quotaon(8) pretty much depends on the kernel patch to ext4 since ext4
provides it's ->quotaon callback. In the last iteration of the patch quota
accounting was turned on during mount and quotaon(8) only influenced
whether we actually enforce set quota limits or not. So quota accounting
cannot be turned off and is precise all the time.

  So I believe we are having the same target in mind.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

      reply	other threads:[~2011-11-23 11:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-22 20:12 Support for ext4 hidden quota inodes in quota-tools Jan Kara
2011-11-22 23:51 ` Ted Ts'o
2011-11-23 11:32   ` Jan Kara [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=20111123113228.GB9775@quack.suse.cz \
    --to=jack@suse.cz \
    --cc=adilger@dilger.ca \
    --cc=adityakali@google.com \
    --cc=dmonakhov@openvz.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=tytso@mit.edu \
    /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