All users of fletcher4 methods must call `fletcher_4_init()/_fini()`
There's no benchmarking overhead when called from user-space.
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
#include "libzfs_impl.h"
#include "zfs_prop.h"
#include "zfeature_common.h"
+#include <zfs_fletcher.h>
int
libzfs_errno(libzfs_handle_t *hdl)
zpool_prop_init();
zpool_feature_init();
libzfs_mnttab_init(hdl);
+ fletcher_4_init();
return (hdl);
}
namespace_clear(hdl);
libzfs_mnttab_fini(hdl);
libzfs_core_fini();
+ fletcher_4_fini();
free(hdl);
}