HomeFreeBSD

Add zdb -r <dataset> <object-id | file> <output>

Description

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

Details

Provenance
allanjudeAuthored on Jan 28 2021, 5:36 AM
GitHub <noreply@github.com>Committed on Jan 28 2021, 5:36 AM
Parents
rGb2c5904a7839: Revert special case code from pre-hashtable nvlist era
Branches
Unknown
Tags
Unknown