]> 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>
Sat, 30 Nov 2024 07:52:02 +0000 (10:52 +0300)
commit74e160400ca5caf6be9a9e553904775e4eb5aaef
tree274b6415a1b3f2b79059cd8b145156da366c0c5c
parent0d36c2cb62f5c64c380e38b443758914547862d4
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: pick it to stable so the next commit in this place applies too)
tests/qtest/virtio-9p-test.c