]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add zdb -r <dataset> <object-id | file> <output>
authorAllan Jude <allan@klarasystems.com>
Thu, 28 Jan 2021 05:36:01 +0000 (00:36 -0500)
committerGitHub <noreply@github.com>
Thu, 28 Jan 2021 05:36:01 +0000 (21:36 -0800)
commit393e69241eea8b5f7f817200ad283b7d5b5ceb70
treeda4b11a62ce85f415bf8436d0aca24919925daae
parentb2c5904a7839b93fa30bba261a5981161acea336
Add zdb -r <dataset> <object-id | file> <output>

While you can use zdb -R poolname vdev:offset:[<lsize>/]<psize>[:flags]
to extract individual DVAs from a vdev, it would be handy for be able
copy an entire file out of the pool.

Given a file or object number, add support to copy the contents to a
file. Useful for debugging and recovery.

Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Allan Jude <allan@klarasystems.com>
Closes #11027
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_args_neg.ksh
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_recover.ksh [new file with mode: 0755]
tests/zfs-tests/tests/functional/cli_root/zdb/zdb_recover_2.ksh [new file with mode: 0755]