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
F86802858: D36188.diff
Tue, Jun 25, 7:24 PM
Unknown Object (File)
Fri, Jun 14, 12:37 PM
Unknown Object (File)
May 3 2024, 3:37 PM
Unknown Object (File)
Apr 19 2024, 4:02 PM
Unknown Object (File)
Apr 14 2024, 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
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable