From: Jan Kara <jack@suse.cz>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: hch@infradead.org, Jan Kara <jack@suse.cz>, xfs@oss.sgi.com
Subject: Re: [PATCH 4/8] Add test of quota accounting using fsx
Date: Mon, 14 Jun 2010 14:46:49 +0200 [thread overview]
Message-ID: <20100614124649.GF3903@quack.suse.cz> (raw)
In-Reply-To: <4C114E80.4050803@sandeen.net>
On Thu 10-06-10 15:43:44, Eric Sandeen wrote:
> Eric Sandeen wrote:
> > Jan Kara wrote:
> >> On Wed 09-06-10 12:49:49, Eric Sandeen wrote:
> >>> Jan Kara wrote:
> >>>> Run fsx (and also several fsx threads in parallel) and verify that
> >>>> quota accounting is correct after they finish.
> >>> Jan, I'm having trouble with this one on XFS for some reason, with our
> >>> RHEL6 kernel and quota-3.17...
>
> These don't seem to be working properly at all with xfs.
>
> In quota-3.17, quotaoff seems to turn off both accounting and enforcement,
> despite what the man page says -
>
> To turn off quota limit enforcement on any XFS filesystem, first make sure
> that quota accounting and enforcement are both turned on using repquota -v
> filesystem. Then, use quotaoff -v filesystem to disable limit enforce-
> ment. This may be done while the filesystem is mounted.
>
> And once accounting is turned off, it can't be re-enabled without a remount.
>
> With quota-4.0.0-preX, it seems to turn off -neither- accounting nor enforcement,
> based on hch's test:
>
> [14:59] <hch> qemu1:~/xfstests-dev# mount -o quota /dev/vdb5 /mnt/test
> [14:59] <hch> qemu1:~/xfstests-dev# quotaon -f /dev/vdb5
> [15:00] <hch> qemu1:~/xfstests-dev# quotaon /dev/vdb5
> [15:00] <hch> quotaon: Enable XFS group quota accounting during mount
> [15:00] <hch> quotaon: Enforcing user quota already on /dev/vdb5
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> Argh ;)
Ah, not many people seem to use quotaon(8) with XFS :). The fact that we
turned off both enforcement and accounting was originally intended I think
(Nathan Scott wrote the code) but I agree with you that it makes more sence
to turn off just enforcement as is stated in the manpage. The check in
quotaon.c:newstate() was buggy and worked only by luck for XFS. After I
fixed error checking of kern_quota_on the check stopped working...
I have now committed changes to quota-tools and checked that quotaon now
works reasonably with XFS so it should be cleaned up hopefully.
Honza
--
Jan Kara <jack@suse.cz>
SUSE Labs, CR
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-06-14 12:44 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-24 14:14 [PATCH 0/8 v3] Quota tests for XFSQA Jan Kara
2010-05-24 14:14 ` [PATCH 1/8] Fix test whether kernel supports quotas Jan Kara
2010-05-24 14:14 ` [PATCH 2/8] Fix fallocate() test Jan Kara
2010-05-24 14:14 ` [PATCH 3/8] Test basic quota enforcement Jan Kara
2010-05-25 10:06 ` Christoph Hellwig
2010-05-25 14:41 ` Jan Kara
2010-05-25 20:39 ` Jan Kara
2010-05-27 16:30 ` Christoph Hellwig
2010-05-27 17:08 ` Jan Kara
2010-05-24 14:14 ` [PATCH 4/8] Add test of quota accounting using fsx Jan Kara
2010-06-09 17:49 ` Eric Sandeen
2010-06-10 10:58 ` Jan Kara
2010-06-10 16:50 ` Eric Sandeen
2010-06-10 20:43 ` Eric Sandeen
2010-06-14 12:46 ` Jan Kara [this message]
2010-06-14 10:48 ` Jan Kara
2010-06-15 9:55 ` Jan Kara
2010-07-26 21:46 ` Eric Sandeen
2010-07-27 8:15 ` Jan Kara
2010-07-27 8:48 ` Jan Kara
2010-07-27 13:11 ` Eric Sandeen
2010-05-24 14:14 ` [PATCH 5/8] Add quota test with fsstress Jan Kara
2010-05-24 14:14 ` [PATCH 6/8] Add quota accounting test when fsstress is run and quota limits are set low Jan Kara
2010-05-24 14:14 ` [PATCH 7/8] Add test of quota limit and info setting Jan Kara
2010-05-24 14:14 ` [PATCH 8/8] Add test for quota accounting after remount read only Jan Kara
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=20100614124649.GF3903@quack.suse.cz \
--to=jack@suse.cz \
--cc=hch@infradead.org \
--cc=sandeen@sandeen.net \
--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