From: Dave Chinner <david@fromorbit.com>
To: Jan Kara <jack@suse.cz>
Cc: hch@infradead.org, xfs@oss.sgi.com
Subject: Re: [PATCH 1/3] Test basic quota enforcement
Date: Wed, 19 May 2010 10:55:35 +1000 [thread overview]
Message-ID: <20100519005535.GK2150@dastard> (raw)
In-Reply-To: <1274225776-26987-2-git-send-email-jack@suse.cz>
On Wed, May 19, 2010 at 01:36:14AM +0200, Jan Kara wrote:
> Add a test which checks whether basic quota enforcement works.
Couple of quick things:
- we have ${qa_user} for running stuff under a specific user
- sudo is not installed or configured for this sort of usage
on many systems - typically su is used instead (e.g. see
test 193)
> +# real QA test starts here
> +rm -f $seq.full
> +
> +user=nobody
> +group=`sudo -u $user id -g`
> +grace=2
> +
> +umount $SCRATCH_DEV 2>/dev/null
The scratch device should already be unmounted. if it isn't something
went wrong in a previous test and unmounting it here isn't going to
help.
> +_scratch_mkfs >> $seq.full 2>&1
> +_scratch_mount "-o usrquota,grpquota"
> +quotacheck -u -g $SCRATCH_MNT 2>/dev/null
> +quotaon $SCRATCH_MNT 2>/dev/null
> +setquota -u $user 4 12 2 4 $SCRATCH_MNT
> +setquota -u -t $grace $grace $SCRATCH_MNT
> +setquota -g $group 4 12 2 4 $SCRATCH_MNT
> +setquota -g -t $grace $grace $SCRATCH_MNT
> +umount $SCRATCH_DEV
> +
> +echo; echo "### test user limit enforcement"
> +export MOUNT_OPTIONS="-o usrquota"
> +_qmount
That will overwrite any mount options specified on the command line.
perhaps better is to use:
scratch_mount -o usrquota
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2010-05-19 0:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-18 23:36 Quota tests for XFSQA Jan Kara
2010-05-18 23:36 ` [PATCH 1/3] Test basic quota enforcement Jan Kara
2010-05-19 0:55 ` Dave Chinner [this message]
2010-05-18 23:36 ` [PATCH 2/3] Add test of quota accounting using fsx Jan Kara
2010-05-18 23:36 ` [PATCH 3/3] Add quota test with fsstress 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=20100519005535.GK2150@dastard \
--to=david@fromorbit.com \
--cc=hch@infradead.org \
--cc=jack@suse.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.