Page MenuHomeFreeBSD

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

Authored by kevans on Aug 13 2022, 12:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 4:02 PM
Unknown Object (File)
Sun, Apr 14, 4:13 AM
Unknown Object (File)
Mar 20 2024, 9:49 AM
Unknown Object (File)
Mar 12 2024, 8:02 PM
Unknown Object (File)
Mar 12 2024, 2:46 PM
Unknown Object (File)
Jan 31 2024, 8:00 PM
Unknown Object (File)
Jan 31 2024, 1:52 AM
Unknown Object (File)
Nov 28 2023, 2:43 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 46917
Build 43806: arc lint + arc unit