aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGvozden Neskovic <[email protected]>2016-09-25 10:35:12 +0200
committerGvozden Neskovic <[email protected]>2016-10-03 21:51:34 +0200
commitdc03fa3092472c40bf1b6c7d7ea3170e3ffa9e38 (patch)
tree72655f703cca8533dcec231a2d3ed2bec49a1909
parente2c292bbfc9f1133c3faa46ac88f794b64da7ce2 (diff)
Fletcher4: Init in libzfs_init()
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 <[email protected]>
-rwxr-xr-xlib/libzfs/libzfs_util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_util.c b/lib/libzfs/libzfs_util.c
index 8fec78283..2f29027c9 100755
--- a/lib/libzfs/libzfs_util.c
+++ b/lib/libzfs/libzfs_util.c
@@ -51,6 +51,7 @@
#include "libzfs_impl.h"
#include "zfs_prop.h"
#include "zfeature_common.h"
+#include <zfs_fletcher.h>
int
libzfs_errno(libzfs_handle_t *hdl)
@@ -876,6 +877,7 @@ libzfs_init(void)
zpool_prop_init();
zpool_feature_init();
libzfs_mnttab_init(hdl);
+ fletcher_4_init();
return (hdl);
}
@@ -898,6 +900,7 @@ libzfs_fini(libzfs_handle_t *hdl)
namespace_clear(hdl);
libzfs_mnttab_fini(hdl);
libzfs_core_fini();
+ fletcher_4_fini();
free(hdl);
}