[Ocfs2-test-devel] [PATCH] ocfs2-test: update backup-super test with the new tunefs.ocfs2.

tristan.ye tristan.ye at oracle.com
Sun May 31 21:16:14 PDT 2009


SOB.

Tristan.

On Mon, 2009-06-01 at 02:34 +0800, Tao Ma wrote:
> With the new tunefs.ocfs2, we now support backup_super+label_change
> and backup-super+slot_change. And the output also changes somehow.
> So update the script accordingly.
> 
> Signed-off-by: Tao Ma <tao.ma at oracle.com>
> ---
>  programs/backup_super/test_backup_super.sh |    8 +-------
>  1 files changed, 1 insertions(+), 7 deletions(-)
> 
> diff --git a/programs/backup_super/test_backup_super.sh b/programs/backup_super/test_backup_super.sh
> index b8dc8a0..b5e6429 100755
> --- a/programs/backup_super/test_backup_super.sh
> +++ b/programs/backup_super/test_backup_super.sh
> @@ -296,12 +296,6 @@ function test_tunefs_add_backup()
>  	echo "ls //"|$DEBUGFS_BIN $DEVICE -s 1|grep global_bitmap
>  	exit_if_bad $? 1 "tunefs.ocfs2" $LINENO
>  
> -	#we don't allow change volume with backup
> -	$TUNEFS_BIN --backup-super -L "test" $DEVICE
> -	exit_if_bad $? 1 "tunefs.ocfs2" $LINENO
> -	$TUNEFS_BIN --backup-super -N 8 $DEVICE	#we don't allow change slots with backup
> -	exit_if_bad $? 1 "tunefs.ocfs2" $LINENO
> -
>  	#tunefs a volume to add backup superblocks
>  	cmd="$TUNEFS_BIN --backup-super $DEVICE"
>  	echo "y"|$cmd
> @@ -378,7 +372,7 @@ function volume_small_test()
>  	# the output of stderr and find what we want.
>  	$MKFS_BIN -b 1K -C 4K $DEVICE -N 4 --no-backup-super $tmp_block_count
>  	err=`$TUNEFS_BIN --backup-super $DEVICE 2>&1`
> -	echo $err|grep "Volume is too small"
> +	echo $err|grep "too small to contain backup superblocks"
>  	exit_if_bad $? 0 "tunefs.ocfs2" $LINENO
>  }
>  




More information about the Ocfs2-test-devel mailing list