Searched refs:nvsize (Results 1 – 5 of 5) sorted by relevance
| /f-stack/freebsd/contrib/openzfs/module/nvpair/ |
| H A D | nvpair.c | 621 size_t nvsize; in nvp_buf_alloc() local 2361 size_t nvsize; in nvs_decode_pairs() local 2420 *buflen = nvsize; in nvs_getsize_pairs() 2543 *size = nvsize; in nvs_embedded_nvl_array() 3022 size_t nvsize = 0; in nvs_native_nvp_size() local 3027 nvp_sz += nvsize; in nvs_native_nvp_size() 3031 size_t nvsize; in nvs_native_nvp_size() local 3036 nvp_sz += nvsize; in nvs_native_nvp_size() 3473 size_t nvsize = 0; in nvs_xdr_nvp_size() local 3487 nvp_sz += nvsize; in nvs_xdr_nvp_size() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/zfs/ |
| H A D | zfs_fuid.c | 223 size_t nvsize = 0; in zfs_fuid_sync() local 266 VERIFY(nvlist_size(nvp, &nvsize, NV_ENCODE_XDR) == 0); in zfs_fuid_sync() 267 packed = kmem_alloc(nvsize, KM_SLEEP); in zfs_fuid_sync() 268 VERIFY(nvlist_pack(nvp, &packed, &nvsize, in zfs_fuid_sync() 271 zfsvfs->z_fuid_size = nvsize; in zfs_fuid_sync()
|
| H A D | vdev_label.c | 1315 size_t nvsize; in vdev_label_write_bootenv() local 1318 error = nvlist_size(env, &nvsize, NV_ENCODE_XDR); in vdev_label_write_bootenv() 1322 if (nvsize >= sizeof (bootenv->vbe_bootenv)) { in vdev_label_write_bootenv() 1351 nvsize = sizeof (bootenv->vbe_bootenv); in vdev_label_write_bootenv() 1357 (void) strlcpy(bootenv->vbe_bootenv, nvbuf, nvsize); in vdev_label_write_bootenv() 1363 error = nvlist_pack(env, &nvbuf, &nvsize, NV_ENCODE_XDR, in vdev_label_write_bootenv()
|
| H A D | spa.c | 1955 size_t nvsize = 0; in load_nvlist() local 1963 nvsize = *(uint64_t *)db->db_data; in load_nvlist() 1966 packed = vmem_alloc(nvsize, KM_SLEEP); in load_nvlist() 1970 error = nvlist_unpack(packed, nvsize, value, 0); in load_nvlist() 1971 vmem_free(packed, nvsize); in load_nvlist() 8349 size_t nvsize = 0; local 8352 VERIFY(nvlist_size(nv, &nvsize, NV_ENCODE_XDR) == 0); 8359 bufsize = P2ROUNDUP((uint64_t)nvsize, SPA_CONFIG_BLOCKSIZE); 8362 VERIFY(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR, 8364 bzero(packed + nvsize, bufsize - nvsize); [all …]
|
| /f-stack/freebsd/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 885 size_t nvsize = *(uint64_t *)data; in dump_packed_nvlist() local 886 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); in dump_packed_nvlist() 888 VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH)); in dump_packed_nvlist() 890 VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0); in dump_packed_nvlist() 892 umem_free(packed, nvsize); in dump_packed_nvlist() 3856 size_t nvsize = 0; in dump_config() local 3864 nvsize = *(uint64_t *)db->db_data; in dump_config() 3869 spa->spa_config_object, (void *)&nvsize, 1); in dump_config()
|