Switch fnvpair back to native to assess impact
This commit is contained in:
parent
db0d791f83
commit
8a30bd4541
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue