Lines Matching refs:nv

597 	nvlist_t *nv;  in get_replication()  local
613 nv = top[t]; in get_replication()
619 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG, &is_log); in get_replication()
623 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, in get_replication()
625 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in get_replication()
649 verify(nvlist_lookup_uint64(nv, in get_replication()
980 make_disks(zpool_handle_t *zhp, nvlist_t *nv, zpool_boot_label_t boot_type, in make_disks() argument
994 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in make_disks()
996 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in make_disks()
1007 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0); in make_disks()
1013 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in make_disks()
1049 verify(nvlist_add_string(nv, in make_disks()
1065 verify(nvlist_add_string(nv, ZPOOL_CONFIG_PATH, buf) == 0); in make_disks()
1087 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in make_disks()
1095 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in make_disks()
1159 is_device_in_use(nvlist_t *config, nvlist_t *nv, boolean_t force, in is_device_in_use() argument
1170 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) == 0); in is_device_in_use()
1172 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN, in is_device_in_use()
1175 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0); in is_device_in_use()
1183 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK, in is_device_in_use()
1207 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES, in is_device_in_use()
1214 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE, in is_device_in_use()
1297 nvlist_t *nvroot, *nv, **top, **spares, **l2cache; in construct_spec() local
1314 nv = NULL; in construct_spec()
1405 if ((nv = make_leaf_vdev(props, argv[c], in construct_spec()
1408 child[children - 1] = nv; in construct_spec()
1438 verify(nvlist_alloc(&nv, NV_UNIQUE_NAME, in construct_spec()
1440 verify(nvlist_add_string(nv, ZPOOL_CONFIG_TYPE, in construct_spec()
1442 verify(nvlist_add_uint64(nv, in construct_spec()
1445 verify(nvlist_add_string(nv, in construct_spec()
1449 verify(nvlist_add_string(nv, in construct_spec()
1454 verify(nvlist_add_string(nv, in construct_spec()
1459 verify(nvlist_add_uint64(nv, in construct_spec()
1463 verify(nvlist_add_nvlist_array(nv, in construct_spec()
1476 if ((nv = make_leaf_vdev(props, argv[0], is_log)) in construct_spec()
1482 verify(nvlist_add_string(nv, in construct_spec()
1487 verify(nvlist_add_string(nv, in construct_spec()
1499 top[toplevels - 1] = nv; in construct_spec()