Searched refs:nvsize (Results 1 – 5 of 5) sorted by relevance
| /freebsd-14.2/sys/contrib/openzfs/module/nvpair/ |
| H A D | nvpair.c | 625 size_t nvsize; in nvp_buf_alloc() local 2389 size_t nvsize; in nvs_decode_pairs() local 2448 *buflen = nvsize; in nvs_getsize_pairs() 2571 *size = nvsize; in nvs_embedded_nvl_array() 3050 size_t nvsize = 0; in nvs_native_nvp_size() local 3055 nvp_sz += nvsize; in nvs_native_nvp_size() 3059 size_t nvsize; in nvs_native_nvp_size() local 3064 nvp_sz += nvsize; in nvs_native_nvp_size() 3553 size_t nvsize = 0; in nvs_xdr_nvp_size() local 3567 nvp_sz += nvsize; in nvs_xdr_nvp_size() [all …]
|
| /freebsd-14.2/sys/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 | 1387 size_t nvsize; in vdev_label_write_bootenv() local 1391 error = nvlist_size(env, &nvsize, NV_ENCODE_XDR); in vdev_label_write_bootenv() 1395 if (nvsize >= sizeof (bootenv->vbe_bootenv)) { in vdev_label_write_bootenv() 1424 nvsize = sizeof (bootenv->vbe_bootenv); in vdev_label_write_bootenv() 1430 (void) strlcpy(bootenv->vbe_bootenv, tmp, nvsize); in vdev_label_write_bootenv() 1436 error = nvlist_pack(env, &nvbuf, &nvsize, NV_ENCODE_XDR, in vdev_label_write_bootenv()
|
| H A D | spa.c | 2376 size_t nvsize = 0; in load_nvlist() local 2384 nvsize = *(uint64_t *)db->db_data; in load_nvlist() 2387 packed = vmem_alloc(nvsize, KM_SLEEP); in load_nvlist() 2391 error = nvlist_unpack(packed, nvsize, value, 0); in load_nvlist() 2392 vmem_free(packed, nvsize); in load_nvlist() 9028 size_t nvsize = 0; local 9031 VERIFY(nvlist_size(nv, &nvsize, NV_ENCODE_XDR) == 0); 9038 bufsize = P2ROUNDUP((uint64_t)nvsize, SPA_CONFIG_BLOCKSIZE); 9041 VERIFY(nvlist_pack(nv, &packed, &nvsize, NV_ENCODE_XDR, 9043 memset(packed + nvsize, 0, bufsize - nvsize); [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/cmd/zdb/ |
| H A D | zdb.c | 996 size_t nvsize = *(uint64_t *)data; in dump_packed_nvlist() local 997 char *packed = umem_alloc(nvsize, UMEM_NOFAIL); in dump_packed_nvlist() 999 VERIFY(0 == dmu_read(os, object, 0, nvsize, packed, DMU_READ_PREFETCH)); in dump_packed_nvlist() 1001 VERIFY(nvlist_unpack(packed, nvsize, &nv, 0) == 0); in dump_packed_nvlist() 1003 umem_free(packed, nvsize); in dump_packed_nvlist() 4283 size_t nvsize = 0; in dump_config() local 4291 nvsize = *(uint64_t *)db->db_data; in dump_config() 4296 spa->spa_config_object, (void *)&nvsize, 1); in dump_config()
|