Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2012 14:45:48 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/164709: [patch] [pc-sysinstall] add raidz3 support; permit 'raidz' in input
Message-ID:  <201202021445.q12EjmsK087843@red.freebsd.org>
Resent-Message-ID: <201202021450.q12Eo4K9003772@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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