[Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors

Andrey Shinkevich posted 2 patches 5 years ago
Test docker-mingw@fedora passed
Test docker-clang@ubuntu passed
Test checkpatch passed
Test asan passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/1554821792-968307-1-git-send-email-andrey.shinkevich@virtuozzo.com
Maintainers: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>
qemu-img-cmds.hx           |  4 +--
qemu-img.c                 | 18 ++++++++++--
qemu-img.texi              |  2 +-
tests/qemu-iotests/253     | 69 ++++++++++++++++++++++++++++++++++++++++++++++
tests/qemu-iotests/253.out |  4 +++
tests/qemu-iotests/group   |  1 +
6 files changed, 93 insertions(+), 5 deletions(-)
create mode 100755 tests/qemu-iotests/253
create mode 100644 tests/qemu-iotests/253.out
[Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors
Posted by Andrey Shinkevich 5 years ago
The 'qemu-img convert' new command option 'force read' with the key '-R'
allows converting a damaged image to get all the available information
in case of the read errors. The program reports read errors and continue
the image conversion. The users should keep in their minds that the
resulting image is inconsistent.

Andrey Shinkevich (2):
  qemu-img convert: ignore read errors
  iotests: new test 253 check qemu-img convert force read

 qemu-img-cmds.hx           |  4 +--
 qemu-img.c                 | 18 ++++++++++--
 qemu-img.texi              |  2 +-
 tests/qemu-iotests/253     | 69 ++++++++++++++++++++++++++++++++++++++++++++++
 tests/qemu-iotests/253.out |  4 +++
 tests/qemu-iotests/group   |  1 +
 6 files changed, 93 insertions(+), 5 deletions(-)
 create mode 100755 tests/qemu-iotests/253
 create mode 100644 tests/qemu-iotests/253.out

-- 
1.8.3.1


Re: [Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors
Posted by Max Reitz 5 years ago
On 09.04.19 16:56, Andrey Shinkevich wrote:
> The 'qemu-img convert' new command option 'force read' with the key '-R'
> allows converting a damaged image to get all the available information
> in case of the read errors. The program reports read errors and continue
> the image conversion. The users should keep in their minds that the
> resulting image is inconsistent.

I’ve already sent a series “Add salvaging mode to convert” back in December.

Max