qemu/tests/qemu-iotests
Max Reitz 1ce52846d3 nbd: Improve error messages
This patch makes use of the Error object for nbd_receive_negotiate() so
that errors during negotiation look nicer.

Furthermore, this patch adds an additional error message if the received
magic was wrong, but would be correct for the other protocol version,
respectively: So if an export name was specified, but the NBD server
magic corresponds to an old handshake, this condition is explicitly
signaled to the user, and vice versa.

As these messages are now part of the "Could not open image" error
message, additional filtering has to be employed in iotest 083, which
this patch does as well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-02-06 17:24:22 +01:00
..
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
2014-12-10 10:31:12 +01:00
017
018
019
020
021
022
023
024
026
027
029
031
2014-06-27 20:00:00 +02:00
032
033
034
035
037
038
039
2014-12-12 15:48:26 +00:00
042
043
044
045
046
047
048
2014-12-10 10:31:12 +01:00
049
050
053
054
2014-06-27 20:00:00 +02:00
055
2015-01-13 11:47:56 +00:00
056
057
059
2014-12-12 13:14:10 +00:00
061
2014-11-03 11:41:49 +00:00
062
063
064
2015-01-23 12:41:32 -05:00
2015-01-23 12:41:32 -05:00
066
068
069
2014-09-22 11:39:45 +01:00
070
2014-10-04 19:18:17 +01:00
2014-10-04 19:18:17 +01:00
072
2014-09-22 11:39:45 +01:00
073
074
077
2014-12-10 10:31:12 +01:00
080
2014-12-10 10:31:13 +01:00
083
2015-02-06 17:24:22 +01:00
2015-02-06 17:24:22 +01:00
084
2014-11-09 23:39:50 +01:00
085
089
2014-12-10 10:31:12 +01:00
091
095
2014-10-04 19:18:17 +01:00
100
2015-02-06 17:24:22 +01:00
104
2015-02-06 17:24:22 +01:00
107
2014-11-03 11:41:48 +00:00
2015-01-13 11:47:55 +00:00
2014-12-10 10:31:12 +01:00
2015-02-06 17:24:22 +01:00
2015-02-06 17:24:21 +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.