Lines Matching full:nv

496 	nvlist_t *nv;  in get_replication()  local
512 nv = top[t]; in get_replication()
518 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); in get_replication()
527 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in get_replication()
532 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in get_replication()
557 verify(nvlist_lookup_uint64(nv, in get_replication()
964 make_disks(zpool_handle_t *zhp, nvlist_t *nv, boolean_t replacing) in make_disks() argument
977 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in make_disks()
979 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in make_disks()
992 verify(!nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path)); in make_disks()
993 verify(!nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in make_disks()
1001 update_vdev_config_dev_strs(nv); in make_disks()
1067 nv, zhp == NULL ? "create" : in make_disks()
1108 verify(nvlist_add_string(nv, ZPOOL_CONFIG_PATH, udevpath) == 0); in make_disks()
1113 update_vdev_config_dev_strs(nv); in make_disks()
1122 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in make_disks()
1128 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in make_disks()
1142 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, in is_device_in_use() argument
1153 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in is_device_in_use()
1155 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in is_device_in_use()
1158 verify(!nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path)); in is_device_in_use()
1160 verify(!nvlist_lookup_uint64(nv, in is_device_in_use()
1194 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in is_device_in_use()
1201 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in is_device_in_use()
1354 draid_config_by_type(nvlist_t *nv, const char *type, uint64_t children) in draid_config_by_type() argument
1477 fnvlist_add_uint64(nv, ZPOOL_CONFIG_NPARITY, nparity); in draid_config_by_type()
1478 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NDATA, ndata); in draid_config_by_type()
1479 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NSPARES, nspares); in draid_config_by_type()
1480 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NGROUPS, ngroups); in draid_config_by_type()
1494 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1513 nv = NULL; in construct_spec()
1605 if ((nv = make_leaf_vdev(props, argv[c], in construct_spec()
1614 child[children - 1] = nv; in construct_spec()
1650 verify(nvlist_alloc(&nv, NV_UNIQUE_NAME, in construct_spec()
1652 verify(nvlist_add_string(nv, ZPOOL_CONFIG_TYPE, in construct_spec()
1654 verify(nvlist_add_uint64(nv, in construct_spec()
1657 verify(nvlist_add_string(nv, in construct_spec()
1662 verify(nvlist_add_string(nv, in construct_spec()
1667 verify(nvlist_add_string(nv, in construct_spec()
1672 verify(nvlist_add_uint64(nv, in construct_spec()
1677 if (draid_config_by_type(nv, in construct_spec()
1685 verify(nvlist_add_nvlist_array(nv, in construct_spec()
1698 if ((nv = make_leaf_vdev(props, argv[0], !(is_log || in construct_spec()
1702 verify(nvlist_add_uint64(nv, in construct_spec()
1705 verify(nvlist_add_string(nv, in construct_spec()
1712 verify(nvlist_add_string(nv, in construct_spec()
1717 verify(nvlist_add_string(nv, in construct_spec()
1729 top[toplevels - 1] = nv; in construct_spec()