conf/164709: [patch] [pc-sysinstall] add raidz3 support; permit 'raidz' in input

Garrett Cooper yanegomi at
Thu Feb 2 14:50:05 UTC 2012

>Number:         164709
>Category:       conf
>Synopsis:       [patch] [pc-sysinstall] add raidz3 support; permit 'raidz' in input
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 02 14:50:04 UTC 2012
>Originator:     Garrett Cooper
>Release:        9.0-STABLE
FreeBSD bayonetta.local 9.0-STABLE FreeBSD 9.0-STABLE #4 r230371M: Thu Jan 19 23:55:38 PST 2012     gcooper at bayonetta.local:/usr/obj/store/freebsd/stable/9/sys/BAYONETTA  amd64
The attached patch permits one to specify raidz3 in get_fs_line_xvars(..) (RAIDZ3 is 3-disk parity option available in versions of ZFS in 8.3+/9.0+), and also relaxes the checks to allow one to specify raidz instead of raidz1.


Patch attached with submission follows:

Index: usr.sbin/pc-sysinstall/backend/
--- usr.sbin/pc-sysinstall/backend/	(revision 230088)
+++ usr.sbin/pc-sysinstall/backend/	(working copy)
@@ -59,7 +59,7 @@
       ZFSVARS="`echo $LINE | cut -d '(' -f 2- | cut -d ')' -f 1 | xargs`"
-      echo $ZFSVARS | grep -qE "^(disk|file|mirror|raidz(1|2)?|spare|log|cache):" 2>/dev/null
+      echo $ZFSVARS | grep -qE "^(disk|file|mirror|raidz[1-3]?|spare|log|cache):" 2>/dev/null
 	  if [ $? -eq 0 ] ; then
        ZTYPE=`echo $ZFSVARS | cut -f1 -d:`
        ZFSVARS=`echo $ZFSVARS | sed "s|$ZTYPE: ||g" | sed "s|$ZTYPE:||g"`


More information about the freebsd-bugs mailing list