Markus Armbruster bf89e87427 vhdx: Fix "log that needs to be replayed" error message
The arguments of error_setg_errno() should yield a short error string
without newlines.

Here, we try to append additional help to the error message by
embedding newlines in the error string.  That's nice, but it's doesn't
play nicely with the errno part.  tests/qemu-iotests/070.out shows the
resulting mess:

    can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed.  To replay the log, execute:
     qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx': Operation not permitted

Switch to error_setg() and error_append_hint().  Result:

    can't open device TEST_DIR/iotest-dirtylog-10G-4M.vhdx: VHDX image file 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx' opened read-only, but contains a log that needs to be replayed
    To replay the log, run:
    qemu-img check -r all 'TEST_DIR/iotest-dirtylog-10G-4M.vhdx'

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-21-git-send-email-armbru@redhat.com>
2016-01-13 15:16:18 +01:00
..
007
2015-03-10 14:02:21 +01:00
015
2015-03-10 14:02:21 +01:00
026
2015-12-17 08:21:27 +01:00
2015-12-17 08:21:27 +01:00
029
2015-03-10 14:02:21 +01:00
030
2015-11-18 15:54:15 +01:00
031
2014-06-27 20:00:00 +02:00
048
2014-12-10 10:31:12 +01:00
051
2016-01-07 21:30:17 +01:00
2016-01-07 21:30:17 +01:00
2016-01-07 21:30:17 +01:00
054
2014-06-27 20:00:00 +02:00
061
2015-10-16 15:34:29 +02:00
062
2013-08-30 15:28:52 +02:00
064
2015-01-23 12:41:32 -05:00
2015-01-23 12:41:32 -05:00
067
2015-10-16 15:34:30 +02:00
2015-10-16 15:34:30 +02:00
068
2015-12-18 14:36:17 +01:00
069
2014-09-22 11:39:45 +01:00
070
2014-10-04 19:18:17 +01:00
071
2015-10-23 18:18:22 +02:00
2015-10-23 18:18:22 +02:00
072
2014-09-22 11:39:45 +01:00
077
2015-12-17 08:21:27 +01:00
079
2015-03-10 14:02:21 +01:00
080
2015-03-10 14:02:21 +01:00
081
2015-10-23 18:18:22 +02:00
2015-10-23 18:18:22 +02:00
083
2015-02-06 17:24:22 +01:00
084
2014-11-09 23:39:50 +01:00
086
2016-01-07 21:30:16 +01:00
089
2015-03-10 14:02:21 +01:00
095
2016-01-07 21:30:17 +01:00
2016-01-07 21:30:17 +01:00
100
2015-02-06 17:24:22 +01:00
107
2014-11-03 11:41:48 +00:00
108
2015-03-10 14:02:21 +01:00
2015-12-18 14:36:17 +01:00
122
2015-04-28 15:36:09 +02:00
124
2015-12-18 14:34:42 +01:00
130
2015-09-04 20:59:48 +02:00
137
2015-09-14 16:51:37 +02:00
2015-10-16 15:34:30 +02:00
2012-02-23 10:29:46 +01:00

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.