Author: avg
Date: Fri Oct  6 08:15:37 2017
New Revision: 324347
URL: https://svnweb.freebsd.org/changeset/base/324347

Log:
  MFV r316933: 5142 libzfs support raidz root pool (loader project)
  
  illumos/illumos-gate@d5f26ad8122c3762fb16413a17bfb497db86a782
  
https://github.com/illumos/illumos-gate/commit/d5f26ad8122c3762fb16413a17bfb497db86a782
  
  https://www.illumos.org/issues/5142
    the current libzfs only allows simple disk and mirror setup for boot pool, 
as
    loader does support booting from raidz, this feature will remove raidz
    restriction from boot pool setup.
  
  FreeBSD note: we have long supported this feature, this commit only
  removes a small difference in libzfs.
  
  Reviewed by: George Wilson <[email protected]>
  Reviewed by: Yuri Pankov <[email protected]>
  Reviewed by: Andrew Stormont <[email protected]>
  Reviewed by: Albert Lee <[email protected]>
  Approved by: Robert Mustacchi <[email protected]>
  Author: Toomas Soome <[email protected]>
  
  MFC after:    3 weeks

Modified:
  head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
Directory Properties:
  head/cddl/contrib/opensolaris/   (props changed)
  head/cddl/contrib/opensolaris/lib/libzfs/   (props changed)

Modified: head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c       Fri Oct 
 6 08:12:13 2017        (r324346)
+++ head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_pool.c       Fri Oct 
 6 08:15:37 2017        (r324347)
@@ -2295,6 +2295,7 @@ vdev_get_physpaths(nvlist_t *nv, char *physpath, size_
                                return (ret);
                }
        } else if (strcmp(type, VDEV_TYPE_MIRROR) == 0 ||
+           strcmp(type, VDEV_TYPE_RAIDZ) == 0 ||
            strcmp(type, VDEV_TYPE_REPLACING) == 0 ||
            (is_spare = (strcmp(type, VDEV_TYPE_SPARE) == 0))) {
                nvlist_t **child;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to