From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kara Subject: Re: quota tests Date: Tue, 6 Sep 2011 16:50:54 +0200 Message-ID: <20110906145054.GF23747@quack.suse.cz> References: <20110906122116.GA31290@infradead.org> <20110906144334.GE23747@quack.suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Jan Kara , linux-fsdevel@vger.kernel.org To: Christoph Hellwig Return-path: Received: from cantor2.suse.de ([195.135.220.15]:36267 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754427Ab1IFOu5 (ORCPT ); Tue, 6 Sep 2011 10:50:57 -0400 Content-Disposition: inline In-Reply-To: <20110906144334.GE23747@quack.suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Tue 06-09-11 16:43:34, Jan Kara wrote: > On Tue 06-09-11 08:21:16, Christoph Hellwig wrote: > > do you have some quota test scripts? I've noticed that the quota > > testing in xfstests really isn't as good as it should be and I'm > > looking for more existing tests I can integrated before writing new > > ones from scratch. > All I had (well, except a tool which verifies sanity of quotactl syscall > but that's out of scope for xfstests I'd say) is already integrated into > xfstests. > > We have test 219 which tests whether quota measures something sane. > Test 230 tries to exceed various quota limits and checks that it fails > roughly at the right moment. > Tests 231 and 232 check that if we stress the filesystem (fsx, fsstress), > the resulting quota usage is indeed what we get when we sum up the usage > using quotacheck (which is worthless for XFS but for ext? filesystems this > is really useful). > Test 233 checks running fsstress with quotas set low so that we often hit > EDQUOT. We also verify that usage matches what quotacheck gets. > Finally test 234 stresses operations on top of quota files by adding and > removing quota structures by setquota from several processes. Oh, and we have test 235 which checks whether quota gets properly suspended during remount read-only and reenabled during remount read-write. Honza -- Jan Kara SUSE Labs, CR