Re: [PATCH 6/9] xfstests: add a new test that runs fsstress under ENOSPC conditions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I saw this while running the newly added tests on btrfs:

On Thu, Nov 03, 2011 at 09:55:50PM +0400, Dmitry Monakhov wrote:
> --- /dev/null
> +++ b/269
> +_workout()
> +{
> +	echo ""
> +	echo "Run fsstress"
> +	echo ""
> +	num_iterations=10
> +	enospc_time=2
> +	out=$SCRATCH_MNT/fsstress.$$
> +	args="-p128 -n999999999 -f setattr=1 $FSSTRESS_AVOID -d $out"
> +	echo "fsstress $args" >> $here/$seq.full
> +	$FSSTRESS_PROG $args > /dev/null 2>&1 &
> +	pid=$!
> +	echo "Run dd writers in parallel"
> +	for ((i=0; i < num_iterations; i++))
> +	do
> +		# File will be opened with O_TRUNC each time
> +		dd if=/dev/zero of=$SCRATCH_MNT/SPACE_CONSUMER bs=1M count=1 \
> +			> /dev/null 2>&1
> +		sleep $enospc_time
> +	done
> +	kill $pid

269      [failed, exit status 1] - output mismatch (see 269.out.bad)
--- 269.out     2011-11-07 13:26:23.000000000 +0100
+++ 269.out.bad 2011-11-07 14:07:44.000000000 +0100
@@ -3,3 +3,4 @@
 Run fsstress

 Run dd writers in parallel
+./269: line 60: kill: (9754) - No such process

> +	wait $pid
> +}

and the test is reported to fail. Seems that the dd commands finish in less 2
seconds.


david

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


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux