All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] xfstests patches
@ 2013-03-13 14:57 Eric Sandeen
  2013-03-13 14:57 ` [PATCH 1/3] xfstests: add 274 to the prealloc group Eric Sandeen
                   ` (3 more replies)
  0 siblings, 4 replies; 46+ messages in thread
From: Eric Sandeen @ 2013-03-13 14:57 UTC (permalink / raw)
  To: xfs

2 pretty simple ones, and a new btrfs test

[PATCH 1/3] xfstests: add 274 to the prealloc group
[PATCH 2/3] xfstests: keep newlines out of SCRATCH_DEV_POOL
[PATCH 3/3] xfstests: btrfs tests for basic informational commands

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 46+ messages in thread
* Re: [PATCH 1/3] 263: Functional test case for the btrfs snapshot
@ 2011-10-13  0:56 Dave Chinner
  2011-10-18  6:28   ` Anand Jain
  0 siblings, 1 reply; 46+ messages in thread
From: Dave Chinner @ 2011-10-13  0:56 UTC (permalink / raw)
  To: Anand Jain; +Cc: hch, linux-fsdevel, linux-btrfs, xfs, chris.mason

On Wed, Oct 12, 2011 at 12:52:52PM +0800, Anand Jain wrote:
> Create snapshots in various ways, modify the data around the block and
> file boundaries and verify the data integrity.
....

> +
> +# Create Dir tree and files in it.
> +# arg1 basedir
> +# arg2 dir depth
> +# arg3 nfile_min
> +# arg4 nfile_max
> +# arg5 fsize_min
> +# arg6 fsize_max
> +_fillfs()
> +{
> +	umask 000
> +	local j
> +	local i
> +	local DIRP
> +	local FCNT
> +	local FILEP
> +	local SCNT
> +	local BCNT
> +	DIRP=$6
> +	for ((j=0; j<$1; j++)); do
> +		DIRP=`mktemp -dq $DIRP/dir.XXXXXX`
> +		FCNT=$(_rand_range $2 $3)
> +		for ((i=0; i<$FCNT; i++)); do
> +			FILEP=`mktemp -q $DIRP/file.XXXXXX`
> +			SCNT=$(_rand_range $4 $5)
> +			dd if=/dev/urandom of=$FILEP bs=$SCNT count=1 status=noxfer 2>/dev/null &
> +		done
> +	done
> +	wait $!
> +}

Please, no, not -another- new and just a bit different "fill
filesystem" function.

There's already been one added recently in test 256 which I
commented at the time could use _populate_fs, and I said the same
thing in my original review of this series, too.

So please modify the _populate_fs function to do what you need.

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

^ permalink raw reply	[flat|nested] 46+ messages in thread

end of thread, other threads:[~2013-03-19 14:15 UTC | newest]

Thread overview: 46+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-13 14:57 [PATCH 0/3] xfstests patches Eric Sandeen
2013-03-13 14:57 ` [PATCH 1/3] xfstests: add 274 to the prealloc group Eric Sandeen
2013-03-13 17:36   ` Rich Johnston
2013-03-13 14:57 ` [PATCH 2/3] xfstests: keep newlines out of SCRATCH_DEV_POOL Eric Sandeen
2013-03-13 14:57   ` Eric Sandeen
2013-03-13 17:43   ` Rich Johnston
2013-03-13 17:43     ` Rich Johnston
2013-03-13 17:45     ` Eric Sandeen
2013-03-13 17:45       ` Eric Sandeen
2013-03-13 14:57 ` [PATCH 3/3] xfstests: btrfs tests for basic informational commands Eric Sandeen
2013-03-13 14:57   ` Eric Sandeen
2013-03-13 15:32   ` Stefan Behrens
2013-03-13 15:32     ` Stefan Behrens
2013-03-13 16:17     ` Eric Sandeen
2013-03-13 16:17       ` Eric Sandeen
2013-03-13 17:47       ` Rich Johnston
2013-03-13 17:47         ` Rich Johnston
2013-03-13 16:38   ` [PATCH 3/3 V2] " Eric Sandeen
2013-03-13 16:38     ` Eric Sandeen
2013-03-13 18:53     ` [PATCH 3/3 V3] " Eric Sandeen
2013-03-13 18:53       ` Eric Sandeen
2013-03-13 19:00       ` Stefan Behrens
2013-03-13 19:00         ` Stefan Behrens
2013-03-13 19:01       ` [PATCH 3/3 V4] " Eric Sandeen
2013-03-13 19:01         ` Eric Sandeen
2013-03-14 13:01         ` Rich Johnston
2013-03-14 13:01           ` Rich Johnston
2013-03-14 13:35           ` Stefan Behrens
2013-03-14 13:35             ` Stefan Behrens
2013-03-15 10:16         ` Dave Chinner
2013-03-15 10:16           ` Dave Chinner
2013-03-15 13:46           ` Eric Sandeen
2013-03-15 13:46             ` Eric Sandeen
2013-03-15 14:23             ` Rich Johnston
2013-03-15 14:23               ` Rich Johnston
2013-03-15 14:36               ` Eric Sandeen
2013-03-15 14:36                 ` Eric Sandeen
2013-03-18 13:30                 ` Rich Johnston
2013-03-18 13:30                   ` Rich Johnston
2013-03-19 14:15                 ` Rich Johnston
2013-03-19 14:15                   ` Rich Johnston
2013-03-14 17:16 ` [PATCH 0/3] xfstests patches Rich Johnston
2013-03-15  5:43   ` Dave Chinner
2013-03-15 13:38     ` Rich Johnston
  -- strict thread matches above, loose matches on Subject: below --
2011-10-13  0:56 [PATCH 1/3] 263: Functional test case for the btrfs snapshot Dave Chinner
2011-10-18  6:28 ` [PATCH 0/3] xfstests patches Anand Jain
2011-10-18  6:28   ` Anand Jain

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.