Jeff Cody 7e30e6a674 block: vhdx - improve error message, and .bdrv_check implementation
If there is a dirty log file to be replayed in a VHDX image, it is
replayed in .vhdx_open().  However, if the file is opened read-only,
then a somewhat cryptic error message results.

This adds a more helpful error message for the user.  If an image file
contains a log to be replayed, and is opened read-only, the user is
instructed to run 'qemu-img check -r all' on the image file.

Running qemu-img check -r all will cause the image file to be opened
r/w, which will replay the log file.  If a log file replay is detected,
this is flagged, and bdrv_check will increase the corruptions_fixed
count for the image.

[Fixed typo in error message that was pointed out by Eric Blake
<eblake@redhat.com>.
--Stefan]

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-12-20 09:11:58 +01:00
..
2013-10-11 16:50:00 +02:00
2013-09-12 10:12:47 +02:00
2013-09-12 10:12:47 +02:00
2013-10-11 10:52:54 +02:00
2013-09-12 10:12:47 +02:00
2013-09-12 10:12:47 +02:00
2013-08-19 15:52:19 +02:00
2013-12-16 10:12:20 +01:00
2013-11-29 13:40:33 +01:00
2013-12-16 10:12:20 +01:00
2013-12-16 10:12:20 +01:00
2013-11-29 13:40:36 +01:00
2013-09-12 10:12:48 +02:00