Lines Matching refs:newroot
2856 * Split a mirror pool. If newroot points to null, then a new nvlist
2860 zpool_vdev_split(zpool_handle_t *zhp, char *newname, nvlist_t **newroot,
2907 if (*newroot == NULL ||
2908 nvlist_lookup_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN,
2982 if (*newroot == NULL) {
2983 if (nvlist_alloc(newroot, NV_UNIQUE_NAME, 0) != 0)
2986 if (nvlist_add_string(*newroot, ZPOOL_CONFIG_TYPE,
2990 verify(nvlist_remove_all(*newroot, ZPOOL_CONFIG_CHILDREN) == 0);
2994 if (nvlist_add_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN, varray,
3012 ZPOOL_CONFIG_VDEV_TREE, *newroot) != 0 ||
3051 nvlist_free(*newroot);
3052 *newroot = NULL;