OSDN Git Service

tests/file-io-error: New test
authorHanna Czenczek <hreitz@redhat.com>
Thu, 24 Aug 2023 15:53:44 +0000 (17:53 +0200)
committerHanna Czenczek <hreitz@redhat.com>
Tue, 29 Aug 2023 11:01:24 +0000 (13:01 +0200)
commit380448464dd89291cf7fd7434be6c225482a334d
treea0f28306553b86a8eb53606ada0e4b83567e22f2
parentd31b50a15dd25a560749b25fc40b6484fd1a57b7
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>
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]