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)
Thu, Dec 12, 5:26 PM
Unknown Object (File)
Nov 22 2024, 9:42 AM
Unknown Object (File)
Nov 14 2024, 6:23 PM
Unknown Object (File)
Oct 3 2024, 9:56 PM
Unknown Object (File)
Oct 3 2024, 2:04 PM
Unknown Object (File)
Sep 26 2024, 3:25 PM
Unknown Object (File)
Sep 26 2024, 1:15 AM
Unknown Object (File)
Sep 25 2024, 4:01 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
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.