]> 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>
Mon, 16 Dec 2024 12:27:45 +0000 (15:27 +0300)
commitf604ab799a4d29b250b8eaa33e45b3df948d6a71
tree7310448356bf2523216cf10ca130444c84fb3156
parenta635a09f55317f394d5849ce2823999a450b3e42
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