]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/file-io-error: New test
authorHanna Czenczek <hreitz@redhat.com>
Thu, 24 Aug 2023 15:53:44 +0000 (17:53 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 2 Oct 2023 23:00:54 +0000 (02:00 +0300)
commit8a043309ada860e6ffdf58015339b38450ece9dd
tree8028096cfa978587b5c713553de20bf50de9e33f
parent8ef6104413b275015d29a673236081e6bf7c6894
tests/file-io-error: New test

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>
(cherry picked from commit 380448464dd89291cf7fd7434be6c225482a334d)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
tests/qemu-iotests/tests/file-io-error [new file with mode: 0755]
tests/qemu-iotests/tests/file-io-error.out [new file with mode: 0644]