Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2007 08:57:49 GMT
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123429 for review
Message-ID:  <200707130857.l6D8vnLb054390@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123429

Change 123429 by lulf@lulf_carrot on 2007/07/13 08:57:15

	- Add testscript for mirrors.
	- A few corrections for raid5 testscript.

Affected files ...

.. //depot/projects/soc2007/lulf/TODO#5 edit
.. //depot/projects/soc2007/lulf/testscripts/test_mirror.sh#1 add
.. //depot/projects/soc2007/lulf/testscripts/test_raid5.sh#3 edit

Differences ...

==== //depot/projects/soc2007/lulf/TODO#5 (text+ko) ====

@@ -155,3 +155,7 @@
 
 22. Add a raid5 command to create a raid5 array the same way that is done with
 concat/mirror/stripe
+
+23. Make sure unequal plexes cannot be mirrored.
+
+23. Create patches.

==== //depot/projects/soc2007/lulf/testscripts/test_raid5.sh#3 (text+ko) ====

@@ -7,19 +7,19 @@
 NUMFAILED=0
 
 function create_raid5_config {
-	tempfoo=`basename $0`;
-	TMPFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1;
-	echo "drive d1 device ${DEV1}" >> ${TMPFILE};
-	echo "drive d2 device ${DEV2}" >> ${TMPFILE};
-	echo "drive d3 device ${DEV3}" >> ${TMPFILE};
-	echo "volume test" >> ${TMPFILE};
-	echo "plex org raid5 493k" >> ${TMPFILE};
-	echo "sd drive d1 len 8m" >> ${TMPFILE};
-	echo "sd drive d2 len 8m" >> ${TMPFILE};
-	echo "sd drive d3 len 8m" >> ${TMPFILE};
-	echo "Creating configuration...";
-	gvinum create $TMPFILE;
-	echo "... Done:";
+	tempfoo=`basename $0`
+	TMPFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1
+	echo "drive d1 device ${DEV1}" >> ${TMPFILE}
+	echo "drive d2 device ${DEV2}" >> ${TMPFILE}
+	echo "drive d3 device ${DEV3}" >> ${TMPFILE}
+	echo "volume test" >> ${TMPFILE}
+	echo "plex org raid5 493k" >> ${TMPFILE}
+	echo "sd drive d1 len 8m" >> ${TMPFILE}
+	echo "sd drive d2 len 8m" >> ${TMPFILE}
+	echo "sd drive d3 len 8m" >> ${TMPFILE}
+	echo "Creating configuration..."
+	gvinum create $TMPFILE
+	echo "... Done:"
 }
 
 function raid5_init {
@@ -131,6 +131,7 @@
 echo "Cleaning up"
 rm zerofile
 rm testfile
+rm testdata
 rm testout1
 rm testout2
 rm testout3



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707130857.l6D8vnLb054390>