zdb -d should accept the numeric objset id

As an alternative to the dataset name, zdb now allows the decimal 
or hexadecimal objset ID to be specified.  When permanent errors
are reported as 2 hexadecimal numbers (objset ID : object ID) in 
zpool status; you can now use 'zdb <pool>[/objset ID] object' to
determine the names of the objset and object which have the error.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: Paul Zuchowski <pzuchowski@datto.com>
Closes #9733
This commit is contained in:
Paul Zuchowski
2020-01-16 12:22:49 -05:00
committed by Brian Behlendorf
parent 1b64627e73
commit f12e42cccf
5 changed files with 173 additions and 14 deletions
+3 -2
View File
@@ -30,12 +30,13 @@
.Op Fl t Ar txg
.Op Fl U Ar cache
.Op Fl x Ar dumpdir
.Op Ar poolname Op Ar object ...
.Op Ar poolname[/dataset | objset ID]
.Op Ar object ...
.Nm
.Op Fl AdiPv
.Op Fl e Oo Fl V Oc Op Fl p Ar path ...
.Op Fl U Ar cache
.Ar dataset Op Ar object ...
.Ar poolname[/dataset | objset ID] Op Ar object ...
.Nm
.Fl C
.Op Fl A