HomeFreeBSD

libbe: bail out early if the zfs kmod isn't loaded

Description

libbe: bail out early if the zfs kmod isn't loaded

As noted in the comment, we already know the rest of libbe_init() will
fail because there's no pool imported. Avoid the side effect by
checking beforehand and bailing out early.

With this, freebsd-update(8) should no longer trigger a load of the zfs
kmod just because it runs bectl check.

Reviewed by: jwmaag_gmail.com, rew

(cherry picked from commit 2f700ca965a04c4a03b6f760da6a210b6ca4df4b)

Details

Provenance
kevansAuthored on Jul 7 2023, 12:41 AM
Parents
rGf383f4ad30a6: nfsd: Fix NFSv4.1/4.2 Claim_Deleg_Cur_FH
Branches
Unknown
Tags
Unknown