mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 06:43:21 +00:00

Refactor nbd_read_eof to return 1 on success, 0 on eof, when no data was read and <0 for other cases, because returned size of read data is not actually used. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20170804151440.320927-3-vsementsov@virtuozzo.com> [eblake: tweak function comments, rebase to test 083 enhancements] Signed-off-by: Eric Blake <eblake@redhat.com>
225 lines
4.6 KiB
Plaintext
225 lines
4.6 KiB
Plaintext
QA output created by 083
|
|
=== Check disconnect before neg1 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect after neg1 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 8 neg1 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 16 neg1 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect before export ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect after export ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 4 export ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 12 export ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 16 export ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect before neg2 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect after neg2 ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 8 neg2 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect 10 neg2 ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/foo
|
|
|
|
=== Check disconnect before request ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after request ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before reply ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after reply ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 4 reply ===
|
|
|
|
End of file
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 8 reply ===
|
|
|
|
End of file
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before data ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after data ===
|
|
|
|
read 512/512 bytes at offset 0
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
=== Check disconnect before neg-classic ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/
|
|
|
|
=== Check disconnect 8 neg-classic ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/
|
|
|
|
=== Check disconnect 16 neg-classic ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/
|
|
|
|
=== Check disconnect 24 neg-classic ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/
|
|
|
|
=== Check disconnect 28 neg-classic ===
|
|
|
|
can't open device nbd+tcp://127.0.0.1:PORT/
|
|
|
|
=== Check disconnect after neg-classic ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before neg1 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect after neg1 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 8 neg1 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 16 neg1 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect before export ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect after export ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 4 export ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 12 export ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 16 export ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect before neg2 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect after neg2 ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 8 neg2 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 10 neg2 ===
|
|
|
|
can't open device nbd+unix:///foo?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect before request ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after request ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before reply ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after reply ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 4 reply ===
|
|
|
|
End of file
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect 8 reply ===
|
|
|
|
End of file
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect before data ===
|
|
|
|
read failed: Input/output error
|
|
|
|
=== Check disconnect after data ===
|
|
|
|
read 512/512 bytes at offset 0
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
=== Check disconnect before neg-classic ===
|
|
|
|
can't open device nbd+unix:///?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 8 neg-classic ===
|
|
|
|
can't open device nbd+unix:///?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 16 neg-classic ===
|
|
|
|
can't open device nbd+unix:///?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 24 neg-classic ===
|
|
|
|
can't open device nbd+unix:///?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect 28 neg-classic ===
|
|
|
|
can't open device nbd+unix:///?socket=TEST_DIR/nbd.sock
|
|
|
|
=== Check disconnect after neg-classic ===
|
|
|
|
read failed: Input/output error
|
|
|
|
*** done
|