mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-23 20:35:24 +00:00
dc668ded10
This new test case uses nbd-fault-injector.py to simulate broken TCP connections at each stage in the NBD protocol. This way we can exercise block/nbd-client.c's socket error handling code paths. In particular, this serves as a regression test to make sure nbd-client.c doesn't cause an infinite loop by leaving its nbd_receive_reply() fd handler registered after the connection has been closed. This bug was fixed in an earlier patch. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
164 lines
4.6 KiB
Plaintext
164 lines
4.6 KiB
Plaintext
QA output created by 083
|
|
=== Check disconnect before neg1 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after neg1 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 8 neg1 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 16 neg1 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect before export ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after export ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 4 export ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 12 export ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 16 export ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect before neg2 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after neg2 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 8 neg2 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 10 neg2 ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect before request ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after request ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect before reply ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after reply ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 4 reply ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 8 reply ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect before data ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT:exportname=foo: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after data ===
|
|
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 8 neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 16 neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 24 neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect 28 neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not open image: Invalid argument
|
|
no file open, try 'help open'
|
|
|
|
=== Check disconnect after neg-classic ===
|
|
|
|
|
|
qemu-io: can't open device nbd:127.0.0.1:PORT: Could not read image for determining its format: Input/output error
|
|
no file open, try 'help open'
|
|
|
|
*** done
|