From 8a30bd4541252a4ad3d586b4756cea437ab150bd Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Fri, 18 Nov 2022 17:54:23 +0000 Subject: [PATCH] Switch fnvpair back to native to assess impact --- module/nvpair/fnvpair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/nvpair/fnvpair.c b/module/nvpair/fnvpair.c index effc4594cc..86b0b4cdfc 100644 --- a/module/nvpair/fnvpair.c +++ b/module/nvpair/fnvpair.c @@ -40,7 +40,7 @@ * functions, which can return the requested value (rather than filling in * 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. * * More wrappers should be added as needed -- for example @@ -65,7 +65,7 @@ size_t fnvlist_size(nvlist_t *nvl) { size_t size; - VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_XDR)); + VERIFY0(nvlist_size(nvl, &size, NV_ENCODE_NATIVE)); return (size); } @@ -77,7 +77,7 @@ char * fnvlist_pack(nvlist_t *nvl, size_t *sizep) { char *packed = 0; - VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_XDR, + VERIFY3U(nvlist_pack(nvl, &packed, sizep, NV_ENCODE_NATIVE, KM_SLEEP), ==, 0); return (packed); }