]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - cmd/zpool/zpool_vdev.c
New upstream version 0.7.4
[mirror_zfs-debian.git] / cmd / zpool / zpool_vdev.c
index 4c3793d6eb58eb5450d8d926ae5a5ab1910acd38..97faa5f9bee121644ddcf4fcac50c27a4e14475b 100644 (file)
@@ -800,8 +800,11 @@ get_replication(nvlist_t *nvroot, boolean_t fatal)
                if (is_log)
                        continue;
 
-               verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE,
-                   &type) == 0);
+               /* Ignore holes introduced by removing aux devices */
+               verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0);
+               if (strcmp(type, VDEV_TYPE_HOLE) == 0)
+                       continue;
+
                if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
                    &child, &children) != 0) {
                        /*