Page MenuHomeFreeBSD

zdb: report an error if initialisation fails
ClosedPublic

Authored by bapt on Dec 22 2015, 11:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 30, 9:01 AM
Unknown Object (File)
Tue, Jul 29, 10:17 AM
Unknown Object (File)
Thu, Jul 24, 10:55 AM
Unknown Object (File)
Sun, Jul 20, 6:45 PM
Unknown Object (File)
Wed, Jul 16, 12:24 PM
Unknown Object (File)
Jun 26 2025, 12:42 PM
Unknown Object (File)
Jun 25 2025, 1:26 PM
Unknown Object (File)
Jun 24 2025, 10:32 PM
Subscribers

Details

Summary

Right now zdb crashes if for various reasons libzfs_init fails which can happen
if the zfs modules fails to load for example.

I think it is better to reportean error rather than crashing

If you want I can also upstream this patch to openzfs

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bapt retitled this revision from to zdb: report an error if initialisation fails.
bapt updated this object.
bapt edited the test plan for this revision. (Show Details)
bapt added a reviewer: mahrens.

looks good. Happy to have this upstream too.

mahrens edited edge metadata.
This revision is now accepted and ready to land.Dec 23 2015, 12:02 AM
This revision was automatically updated to reflect the committed changes.