Lines Matching defs:nv

118 	nvlist_t *nv, *nvl;
124 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) {
125 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &ival) == 0);
127 verify(nvlist_lookup_string(nv, ZPROP_VALUE, &value) == 0);
143 nvlist_t *nv, *nvl;
155 ZPOOL_CONFIG_VDEV_TREE, &nv) == 0) &&
156 (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID, &value)
164 if (nvlist_lookup_nvlist(nvl, zpool_prop_to_name(prop), &nv) == 0) {
165 verify(nvlist_lookup_uint64(nv, ZPROP_SOURCE, &value) == 0);
167 verify(nvlist_lookup_uint64(nv, ZPROP_VALUE, &value) == 0);
1390 nvlist_t *nv = NULL;
1399 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_LOAD_INFO, &nv) != 0 ||
1400 nvlist_lookup_nvlist(nv, ZPOOL_CONFIG_REWIND_INFO, &nv) != 0) {
1404 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_TIME, &rewindto) != 0)
1406 (void) nvlist_lookup_int64(nv, ZPOOL_CONFIG_REWIND_TIME, &loss);
1441 nvlist_t *nv = NULL;
1457 if (nvlist_lookup_nvlist(config, ZPOOL_CONFIG_LOAD_INFO, &nv) != 0 ||
1458 nvlist_lookup_nvlist(nv, ZPOOL_CONFIG_REWIND_INFO, &nv) != 0 ||
1459 nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_TIME, &rewindto) != 0)
1462 (void) nvlist_lookup_int64(nv, ZPOOL_CONFIG_REWIND_TIME, &loss);
1463 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_LOAD_DATA_ERRORS,
1554 print_vdev_tree(libzfs_handle_t *hdl, const char *name, nvlist_t *nv,
1562 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_LOG,
1569 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
1616 nvlist_t *nv = NULL;
1683 (void) zcmd_read_dst_nvlist(hdl, &zc, &nv);
1698 B_TRUE, nv);
1699 nvlist_free(nv);
1714 if (nv != NULL && nvlist_lookup_nvlist(nv,
1720 zpool_print_unsup_feat(nv);
1747 if (nv && nvlist_lookup_nvlist(nv,
1767 newname ? origname : thename, -error, nv);
1771 nvlist_free(nv);
1786 ((policy.zrp_request & ZPOOL_TRY_REWIND) != 0), nv);
1788 nvlist_free(nv);
1883 vdev_to_nvlist_iter(nvlist_t *nv, nvlist_t *search, boolean_t *avail_spare,
1906 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID,
1909 return (nv);
1917 if (nvlist_lookup_string(nv, srchkey, &val) != 0)
1934 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK,
1956 return (nv);
1964 return (nv);
1999 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_ID,
2013 return (nv);
2020 return (nv);
2028 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_CHILDREN,
2051 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_SPARES,
2062 if (nvlist_lookup_nvlist_array(nv, ZPOOL_CONFIG_L2CACHE,
2151 vdev_online(nvlist_t *nv)
2155 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_OFFLINE, &ival) == 0 ||
2156 nvlist_lookup_uint64(nv, ZPOOL_CONFIG_FAULTED, &ival) == 0 ||
2157 nvlist_lookup_uint64(nv, ZPOOL_CONFIG_REMOVED, &ival) == 0)
2196 vdev_get_physpaths(nvlist_t *nv, char *physpath, size_t phypath_size,
2202 if (nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &type) != 0)
2213 (void) nvlist_lookup_uint64(nv, ZPOOL_CONFIG_IS_SPARE,
2219 if (vdev_online(nv)) {
2220 if ((ret = vdev_get_one_physpath(nv, physpath,
2232 if (nvlist_lookup_nvlist_array(nv,
3271 set_path(zpool_handle_t *zhp, nvlist_t *nv, const char *path)
3277 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID,
3299 zpool_vdev_name(libzfs_handle_t *hdl, zpool_handle_t *zhp, nvlist_t *nv,
3308 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_NOT_PRESENT,
3310 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_GUID,
3315 } else if (nvlist_lookup_string(nv, ZPOOL_CONFIG_PATH, &path) == 0) {
3323 if ((nvlist_lookup_uint64_array(nv, ZPOOL_CONFIG_VDEV_STATS,
3327 nvlist_lookup_string(nv, ZPOOL_CONFIG_DEVID, &devid) == 0) {
3341 set_path(zhp, nv, newpath);
3342 if (nvlist_add_string(nv,
3344 verify(nvlist_lookup_string(nv,
3358 if (nvlist_lookup_uint64(nv, ZPOOL_CONFIG_WHOLE_DISK,
3380 verify(nvlist_lookup_string(nv, ZPOOL_CONFIG_TYPE, &path) == 0);
3386 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_NPARITY,
3400 verify(nvlist_lookup_uint64(nv, ZPOOL_CONFIG_ID,
3483 nvlist_t *nv;
3490 if (nvlist_alloc(&nv, NV_UNIQUE_NAME, KM_SLEEP) != 0)
3492 if (nvlist_add_uint64(nv, ZPOOL_ERR_DATASET,
3494 nvlist_free(nv);
3497 if (nvlist_add_uint64(nv, ZPOOL_ERR_OBJECT,
3499 nvlist_free(nv);
3502 if (nvlist_add_nvlist(*nverrlistp, "ejk", nv) != 0) {
3503 nvlist_free(nv);
3506 nvlist_free(nv);
3622 nvlist_t *nv;
3635 if (nvlist_unpack(buf + sizeof (reclen), reclen, &nv, 0) != 0)
3646 (*records)[*numrecords - 1] = nv;