]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/9p: add 'use-after-unlink' test
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Wed, 21 Feb 2024 14:13:13 +0000 (15:13 +0100)
committerMichael Tokarev <mjt@tls.msk.ru>
Tue, 3 Dec 2024 06:22:01 +0000 (09:22 +0300)
commit9229de86197b1986a69bf94aa256b08612e0aabd
tree5509e3627163358e654ca050b70b6f84de76f36a
parent9e6f0a2334c3519316143370fc71ab34187cb980
tests/9p: add 'use-after-unlink' test

After removing a file from the file system, we should still be able to
work with the file if we already had it open before removal.

As a first step we verify that it is possible to write to an unlinked
file, as this is what already works. This test is extended later on
after having fixed other use cases after unlink that are not working
yet.

Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-Id: <3d6449d4df25bcdd3e807eff169f46f1385e5257.1732465720.git.qemu_oss@crudebyte.com>
(cherry picked from commit 462db8fb1d405391b83a0d3099fdb9bfb85c2d92)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
(Mjt: context fix, pick it to stable so the next patch in this place applies)
tests/qtest/virtio-9p-test.c