]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
zdb -d should accept the numeric objset id
authorPaul Zuchowski <31706010+PaulZ-98@users.noreply.github.com>
Thu, 16 Jan 2020 17:22:49 +0000 (12:22 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 16 Jan 2020 17:22:49 +0000 (09:22 -0800)
commitf12e42cccf31d6077f585a562d7e7ed3483291b1
treeecee7b446e02d14363f1df499d133651f1b50dbf
parent1b64627e7335e9f38d66424cdd242b3d0889b060
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
cmd/zdb/zdb.c
man/man8/zdb.8
tests/runfiles/common.run
tests/zfs-tests/tests/functional/cli_root/zdb/Makefile.am
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_objset_id.ksh [new file with mode: 0755]