]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzfs/libzfs_util.c
zfs -V: Print userland version even if kernel module not loaded
authorPrawn <Insane.Prawny@gmail.com>
Mon, 22 Jun 2020 16:56:29 +0000 (18:56 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 16:56:29 +0000 (09:56 -0700)
commit2451a553681fac5e7e42bd794adbf5587bce6749
tree2e9aa546251003c935677a807f82ec5488f58eb4
parent68301ba20e0a6543304a63d22b558fddea130d79
zfs -V: Print userland version even if kernel module not loaded

Running zfs -V when the modules are not loaded would currently
result in the following output:

    zfs_version_kernel() failed: No such file or directory

Note the lack of userland version output.  Reorder the code to
ensure the userland version is printed even when the kmods
are not loaded.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
Closes #10483
lib/libzfs/libzfs_util.c