freebsd-nq/cmd/zdb
Allan Jude 393e69241e
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
2021-01-27 21:36:01 -08:00
..
.gitignore
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
zdb_il.c
zdb.c Add zdb -r <dataset> <object-id | file> <output> 2021-01-27 21:36:01 -08:00
zdb.h