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

Garrett Cooper yanegomi at gmail.com
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
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 02 14:50:04 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.0-STABLE
>Organization:
n/a
>Environment:
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
>Description:
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.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh
===================================================================
--- usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh	(revision 230088)
+++ usr.sbin/pc-sysinstall/backend/functions-bsdlabel.sh	(working copy)
@@ -59,7 +59,7 @@
       ZTYPE="NONE"
       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"`


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list