Lines Matching defs:newroot
2921 * Split a mirror pool. If newroot points to null, then a new nvlist
2925 zpool_vdev_split(zpool_handle_t *zhp, char *newname, nvlist_t **newroot,
2974 if (*newroot == NULL ||
2975 nvlist_lookup_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN,
3049 if (*newroot == NULL) {
3050 if (nvlist_alloc(newroot, NV_UNIQUE_NAME, 0) != 0)
3053 if (nvlist_add_string(*newroot, ZPOOL_CONFIG_TYPE,
3057 verify(nvlist_remove_all(*newroot, ZPOOL_CONFIG_CHILDREN) == 0);
3061 if (nvlist_add_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN, varray,
3079 ZPOOL_CONFIG_VDEV_TREE, *newroot) != 0 ||
3120 nvlist_free(*newroot);
3121 *newroot = NULL;