Browse files

Fix error message when zfs module is not loaded

This patch corrects a small issue where the wrong error message
was being displayed when the zfs kernel module was not loaded.
This also avoids waiting for the (by default) 10s timeout to see
if the /dev/zfs device appears.

Signed-off-by: Tom Caputi <>
  • Loading branch information...
tcaputi committed Dec 5, 2018
1 parent 62ee31a commit c3f4e47130456d42ef297cb6923a973a0fdd8a4e
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/libzfs/libzfs_util.c
@@ -907,10 +907,10 @@ libzfs_load_module(const char *module)
if (load) {
if (libzfs_run_process("/sbin/modprobe", argv, 0))
return (ENOEXEC);
if (!libzfs_module_loaded(module))
return (ENXIO);
if (!libzfs_module_loaded(module))
return (ENXIO);

0 comments on commit c3f4e47

Please sign in to comment.