]> git.proxmox.com Git - mirror_zfs.git/commitdiff
OpenZFS 5142 - libzfs support raidz root pool (loader project)
authorGeorge Melikov <mail@gmelikov.ru>
Thu, 26 Jan 2017 20:47:40 +0000 (23:47 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Jan 2017 20:47:40 +0000 (12:47 -0800)
Authored by: Toomas Soome <tsoome@me.com>
Reviewed by: - George Wilson <george.wilson@delphix.com>
Reviewed by: - Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: - Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: - Albert Lee <trisk@omniti.com>
Approved by: - Robert Mustacchi <rm@joyent.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Ported-by: George Melikov <mail@gmelikov.ru>
OpenZFS-issue: https://www.illumos.org/issues/5142
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/d5f26ad
Closes #5663

lib/libzfs/libzfs_pool.c

index ace2205a8275a14b883aa9e1adc34bf1d0d66ad4..76ada47d67c07d5163784f042e78f4aa201ddba2 100644 (file)
@@ -2310,6 +2310,7 @@ vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_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;