Lines Matching defs:newroot
3849 * Split a mirror pool. If newroot points to null, then a new nvlist
3853 zpool_vdev_split(zpool_handle_t *zhp, char *newname, nvlist_t **newroot,
3908 if (*newroot == NULL ||
3909 nvlist_lookup_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN,
4010 if (*newroot == NULL) {
4011 if (nvlist_alloc(newroot, NV_UNIQUE_NAME, 0) != 0)
4014 if (nvlist_add_string(*newroot, ZPOOL_CONFIG_TYPE,
4018 verify(nvlist_remove_all(*newroot, ZPOOL_CONFIG_CHILDREN) == 0);
4022 if (nvlist_add_nvlist_array(*newroot, ZPOOL_CONFIG_CHILDREN,
4040 ZPOOL_CONFIG_VDEV_TREE, *newroot) != 0 ||
4078 nvlist_free(*newroot);
4079 *newroot = NULL;