PERFORCE change 123429 for review

Ulf Lilleengen lulf at FreeBSD.org
Fri Jul 13 08:57:50 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=123429

Change 123429 by lulf at 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


More information about the p4-projects mailing list