]> git.proxmox.com Git - mirror_qemu.git/commit
qemu-img: Add salvaging mode to convert
authorMax Reitz <mreitz@redhat.com>
Tue, 7 May 2019 20:35:03 +0000 (22:35 +0200)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 Jun 2019 12:16:57 +0000 (14:16 +0200)
commit8eaac025fb43b16a38671e6b80e7059cd8af3403
treef437fa3bf14089b130284fa9f305a50632283c9c
parent3d96cb91d7812c27142e0c722482bfd35661e50c
qemu-img: Add salvaging mode to convert

This adds a salvaging mode (--salvage) to qemu-img convert which ignores
read errors and treats the respective areas as containing only zeroes.
This can be used for instance to at least partially recover the data
from terminally corrupted qcow2 images.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-id: 20190507203508.18026-3-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi