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)
Dec 27 2023, 9:48 AM
Unknown Object (File)
Dec 20 2023, 1:45 AM
Unknown Object (File)
Sep 8 2023, 2:39 AM
Unknown Object (File)
Aug 24 2023, 12:49 AM
Unknown Object (File)
Jun 25 2023, 1:06 AM
Unknown Object (File)
Mar 6 2023, 3:56 AM
Unknown Object (File)
Mar 2 2023, 10:34 AM
Unknown Object (File)
Feb 18 2023, 7:36 AM
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 1797
Build 1803: arc lint + arc unit

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.