Open
Description
Following #16217, it would be interesting to have some JSON output for ZDB as well.
ZDB is a relatively low-level way of inspecting ZFS pools and devices in case of failure. Because of this, some higher-level analysis and extraction can/must be done with automated tools and scripts.
Operations like zdb -dddd
will spit a huge amount of formatted text that must be parsed. A more concise and useful way of outputting this data for further automated processing would be through a intermediate JSON representation.
This would help a lot when creating data recovery scripts for ZFS.
I understand that ZDB is just userland ZFS, but that's precisely what makes it so reassuring to use in case of problems with drives and pools.