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)
Dec 17 2024, 12:15 AM
Unknown Object (File)
Dec 3 2024, 1:17 AM
Unknown Object (File)
Nov 30 2024, 4:34 AM
Unknown Object (File)
Nov 11 2024, 7:17 AM
Unknown Object (File)
Nov 6 2024, 4:14 PM
Unknown Object (File)
Nov 6 2024, 4:14 PM
Unknown Object (File)
Nov 5 2024, 3:40 AM
Unknown Object (File)
Nov 5 2024, 3:32 AM
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