public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Christoph Hellwig <hch@lst.de>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH 2/4] xfstests: make _scratch_mkfs_blocksized usable
Date: Wed, 3 Feb 2016 13:13:01 -0800	[thread overview]
Message-ID: <20160203211301.GK22352@birch.djwong.org> (raw)
In-Reply-To: <1454515328-1586-3-git-send-email-hch@lst.de>

On Wed, Feb 03, 2016 at 05:02:06PM +0100, Christoph Hellwig wrote:
> See http://www.infradead.org/rpr.html
> 
> The default mkfs.xfs options contain -b size=4096, so all tests
> using _scratch_mkfs_blocksized won't actually run unless those
> options are changed.  As we're trying to specificly test 1k
> blocks we should always override the default option.
> 
> BTW, why is _scratch_mkfs_blocksized in the reflink file and not
> with more generic helpers?

Uh... I don't know.  I'll move it.  I have a feeling this might have
slipped through the cracks. :/

Applied, thanks.

--D

> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  common/reflink | 8 +-------
>  1 file changed, 1 insertion(+), 7 deletions(-)
> 
> diff --git a/common/reflink b/common/reflink
> index 398e505..bb1068a 100644
> --- a/common/reflink
> +++ b/common/reflink
> @@ -201,13 +201,7 @@ _scratch_mkfs_blocksized()
>  
>      case $FSTYP in
>      xfs)
> -	# don't override MKFS_OPTIONS that set a block size.
> -	echo $MKFS_OPTIONS |egrep -q "b?size="
> -	if [ $? -eq 0 ]; then
> -		_scratch_mkfs_xfs
> -	else
> -		_scratch_mkfs_xfs -b size=$blocksize
> -	fi
> +	_scratch_mkfs_xfs -b size=$blocksize
>  	;;
>      ext2|ext3|ext4|ocfs2)
>  	${MKFS_PROG}.$FSTYP -F $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV
> -- 
> 2.1.4
> 

  reply	other threads:[~2016-02-03 21:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-03 16:02 more reflink fixes Christoph Hellwig
2016-02-03 16:02 ` [PATCH 1/4] xfstests: filter whitespaces in 128 and 132 Christoph Hellwig
2016-02-03 21:10   ` Darrick J. Wong
2016-02-03 16:02 ` [PATCH 2/4] xfstests: make _scratch_mkfs_blocksized usable Christoph Hellwig
2016-02-03 21:13   ` Darrick J. Wong [this message]
2016-02-03 16:02 ` [PATCH 3/4] xfstests: 912 requires dedup support Christoph Hellwig
2016-02-03 20:56   ` Darrick J. Wong
2016-02-03 16:02 ` [PATCH 4/4] xfstests: 899 requires a working filefrag Christoph Hellwig
2016-02-03 20:58   ` Darrick J. Wong
2016-02-04 15:45 ` more reflink fixes Christoph Hellwig
2016-02-04 17:27   ` Darrick J. Wong

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=20160203211301.GK22352@birch.djwong.org \
    --to=darrick.wong@oracle.com \
    --cc=fstests@vger.kernel.org \
    --cc=hch@lst.de \
    /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