Lines Matching full:nv
495 nvlist_t *nv; in get_replication() local
511 nv = top[t]; in get_replication()
517 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); in get_replication()
526 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in get_replication()
531 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in get_replication()
556 verify(nvlist_lookup_uint64(nv, in get_replication()
963 make_disks(zpool_handle_t *zhp, nvlist_t *nv, boolean_t replacing) in make_disks() argument
976 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in make_disks()
978 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in make_disks()
991 verify(!nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path)); in make_disks()
992 verify(!nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in make_disks()
1000 update_vdev_config_dev_strs(nv); in make_disks()
1066 nv, zhp == NULL ? "create" : in make_disks()
1107 verify(nvlist_add_string(nv, ZPOOL_CONFIG_PATH, udevpath) == 0); in make_disks()
1112 update_vdev_config_dev_strs(nv); in make_disks()
1121 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in make_disks()
1127 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in make_disks()
1141 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, in is_device_in_use() argument
1152 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in is_device_in_use()
1154 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in is_device_in_use()
1157 verify(!nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path)); in is_device_in_use()
1159 verify(!nvlist_lookup_uint64(nv, in is_device_in_use()
1193 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in is_device_in_use()
1200 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in is_device_in_use()
1353 draid_config_by_type(nvlist_t *nv, const char *type, uint64_t children) in draid_config_by_type() argument
1476 fnvlist_add_uint64(nv, ZPOOL_CONFIG_NPARITY, nparity); in draid_config_by_type()
1477 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NDATA, ndata); in draid_config_by_type()
1478 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NSPARES, nspares); in draid_config_by_type()
1479 fnvlist_add_uint64(nv, ZPOOL_CONFIG_DRAID_NGROUPS, ngroups); in draid_config_by_type()
1493 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1512 nv = NULL; in construct_spec()
1604 if ((nv = make_leaf_vdev(props, argv[c], in construct_spec()
1613 child[children - 1] = nv; in construct_spec()
1649 verify(nvlist_alloc(&nv, NV_UNIQUE_NAME, in construct_spec()
1651 verify(nvlist_add_string(nv, ZPOOL_CONFIG_TYPE, in construct_spec()
1653 verify(nvlist_add_uint64(nv, in construct_spec()
1656 verify(nvlist_add_string(nv, in construct_spec()
1661 verify(nvlist_add_string(nv, in construct_spec()
1666 verify(nvlist_add_string(nv, in construct_spec()
1671 verify(nvlist_add_uint64(nv, in construct_spec()
1676 if (draid_config_by_type(nv, in construct_spec()
1684 verify(nvlist_add_nvlist_array(nv, in construct_spec()
1697 if ((nv = make_leaf_vdev(props, argv[0], !(is_log || in construct_spec()
1701 verify(nvlist_add_uint64(nv, in construct_spec()
1704 verify(nvlist_add_string(nv, in construct_spec()
1711 verify(nvlist_add_string(nv, in construct_spec()
1716 verify(nvlist_add_string(nv, in construct_spec()
1728 top[toplevels - 1] = nv; in construct_spec()