From: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: kwolf@redhat.com, mreitz@redhat.com, den@openvz.org, vsementsov@virtuozzo.com, andrey.shinkevich@virtuozzo.com Subject: [Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors Date: Tue, 9 Apr 2019 17:56:30 +0300 [thread overview] Message-ID: <1554821792-968307-1-git-send-email-andrey.shinkevich@virtuozzo.com> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com> To: qemu-devel@nongnu.org, qemu-block@nongnu.org Cc: kwolf@redhat.com, den@openvz.org, vsementsov@virtuozzo.com, andrey.shinkevich@virtuozzo.com, mreitz@redhat.com Subject: [Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors Date: Tue, 9 Apr 2019 17:56:30 +0300 [thread overview] Message-ID: <1554821792-968307-1-git-send-email-andrey.shinkevich@virtuozzo.com> (raw) Message-ID: <20190409145630.y7aIDOR-tOciR9gminpAvmhIH8-MpwZLrnOy793-1HI@z> (raw) 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
next reply other threads:[~2019-04-09 14:56 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-09 14:56 Andrey Shinkevich [this message] 2019-04-09 14:56 ` [Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors Andrey Shinkevich 2019-04-09 14:56 ` [Qemu-devel] [PATCH 1/2] " Andrey Shinkevich 2019-04-09 14:56 ` Andrey Shinkevich 2019-04-10 8:58 ` Vladimir Sementsov-Ogievskiy 2019-04-10 8:58 ` Vladimir Sementsov-Ogievskiy 2019-04-09 14:56 ` [Qemu-devel] [PATCH 2/2] iotests: new test 253 check qemu-img convert force read Andrey Shinkevich 2019-04-09 14:56 ` Andrey Shinkevich 2019-04-10 8:59 ` Vladimir Sementsov-Ogievskiy 2019-04-10 8:59 ` Vladimir Sementsov-Ogievskiy 2019-04-10 15:26 ` [Qemu-devel] [PATCH 0/2] qemu-img convert: ignore read errors Max Reitz 2019-04-10 15:26 ` Max Reitz
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1554821792-968307-1-git-send-email-andrey.shinkevich@virtuozzo.com \ --to=andrey.shinkevich@virtuozzo.com \ --cc=den@openvz.org \ --cc=kwolf@redhat.com \ --cc=mreitz@redhat.com \ --cc=qemu-block@nongnu.org \ --cc=qemu-devel@nongnu.org \ --cc=vsementsov@virtuozzo.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).