HomeFreeBSD

zfs -V: Print userland version even if kernel module not loaded

Description

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

Details

Provenance
Prawn <Insane.Prawny@gmail.com>Authored on Jun 22 2020, 4:56 PM
GitHub <noreply@github.com>Committed on Jun 22 2020, 4:56 PM
Parents
rG68301ba20e0a: zed additional features
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG2451a553681f: zfs -V: Print userland version even if kernel module not loaded (authored by Prawn <Insane.Prawny@gmail.com>).Jun 22 2020, 4:56 PM