Switch fnvpair back to native to assess impact

This commit is contained in:
Brooks Davis 2022-11-18 17:54:23 +00:00
parent db0d791f83
commit 8a30bd4541
1 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@
* functions, which can return the requested value (rather than filling in * functions, which can return the requested value (rather than filling in
* a pointer). * a pointer).
* *
* These functions use NV_UNIQUE_NAME, encoding NV_ENCODE_XDR, and allocate * These functions use NV_UNIQUE_NAME, encoding NV_ENCODE_NATIVE, and allocate
* with KM_SLEEP. * with KM_SLEEP.
* *
* More wrappers should be added as needed -- for example * More wrappers should be added as needed -- for example
@ -65,7 +65,7 @@ size_t
fnvlist_size(nvlist_t *nvl) fnvlist_size(nvlist_t *nvl)
{ {
size_t size; size_t size;
VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_XDR)); VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_NATIVE));
return (size); return (size);
} }
@ -77,7 +77,7 @@ char *
fnvlist_pack(nvlist_t *nvl, size_t *sizep) fnvlist_pack(nvlist_t *nvl, size_t *sizep)
{ {
char *packed = 0; char *packed = 0;
VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_XDR, VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE,
KM_SLEEP), ==, 0); KM_SLEEP), ==, 0);
return (packed); return (packed);
} }