Lines Matching defs:root
930 nvlist_t *root, **child;
944 VERIFY(nvlist_alloc(&root, NV_UNIQUE_NAME, 0) == 0);
945 VERIFY(nvlist_add_string(root, ZPOOL_CONFIG_TYPE, VDEV_TYPE_ROOT) == 0);
946 VERIFY(nvlist_add_nvlist_array(root, aux ? aux : ZPOOL_CONFIG_CHILDREN,
954 return (root);
2756 nvlist_t *root;
2864 * If pvd is not a mirror or root, the attach should fail with ENOTSUP,
2894 root = make_vdev_root(newpath, NULL, NULL, newvd == NULL ? newsize : 0,
2897 error = spa_vdev_attach(spa, oldguid, root, replacing);
2899 nvlist_free(root);