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)
Sat, Mar 21, 5:22 PM
Unknown Object (File)
Thu, Mar 19, 12:57 AM
Unknown Object (File)
Mon, Mar 16, 11:25 PM
Unknown Object (File)
Sat, Mar 14, 10:39 PM
Unknown Object (File)
Sat, Mar 14, 4:24 PM
Unknown Object (File)
Sat, Mar 14, 4:48 AM
Unknown Object (File)
Wed, Mar 11, 7:44 PM
Unknown Object (File)
Feb 21 2026, 10:41 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.