mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 06:13:53 -06:00

This is a regression test for https://bugzilla.redhat.com/show_bug.cgi?id=2234374. All this test needs to do is trigger an I/O error inside of file-posix (specifically raw_co_prw()). One reliable way to do this without requiring special privileges is to use a FUSE export, which allows us to inject any error that we want, e.g. via blkdebug. Signed-off-by: Hanna Czenczek <hreitz@redhat.com> Message-Id: <20230824155345.109765-6-hreitz@redhat.com> [hreitz: Fixed test to be skipped when there is no FUSE support, to suppress fusermount's allow_other warning, and to be skipped with $IMGOPTSSYNTAX enabled] Signed-off-by: Hanna Czenczek <hreitz@redhat.com>
33 lines
903 B
Text
33 lines
903 B
Text
QA output created by file-io-error
|
|
{'execute': 'qmp_capabilities'}
|
|
{"return": {}}
|
|
{'execute': 'blockdev-add',
|
|
'arguments': {
|
|
'driver': 'blkdebug',
|
|
'node-name': 'node0',
|
|
'inject-error': [{'event': 'none'}],
|
|
'image': {
|
|
'driver': 'null-co'
|
|
}
|
|
}}
|
|
{"return": {}}
|
|
{'execute': 'block-export-add',
|
|
'arguments': {
|
|
'id': 'exp0',
|
|
'type': 'fuse',
|
|
'node-name': 'node0',
|
|
'mountpoint': 'TEST_DIR/fuse-export',
|
|
'writable': true
|
|
}}
|
|
{"return": {}}
|
|
|
|
write failed: Input/output error
|
|
|
|
{'execute': 'block-export-del',
|
|
'arguments': {'id': 'exp0'}}
|
|
{"return": {}}
|
|
{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_EXPORT_DELETED", "data": {"id": "exp0"}}
|
|
{'execute': 'blockdev-del',
|
|
'arguments': {'node-name': 'node0'}}
|
|
{"return": {}}
|
|
*** done
|