#
610dc187 |
| 12-Mar-2025 |
Greg Kurz <groug@kaod.org> |
tests/9p: Test `Tsetattr` can truncate unlinked file
Enhance the `use-after-unlink` test with a new check for the case where the client wants to alter the size of an unlinked file for which it still
tests/9p: Test `Tsetattr` can truncate unlinked file
Enhance the `use-after-unlink` test with a new check for the case where the client wants to alter the size of an unlinked file for which it still has an active fid.
Suggested-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Signed-off-by: Greg Kurz <groug@kaod.org> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <20250312152933.383967-7-groug@kaod.org> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
show more ...
|
#
4719a2d5 |
| 12-Mar-2025 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: add 'Tsetattr' request to test client
Add and implement functions to 9pfs test client for sending a 9p2000.L 'Tsetattr' request and receiving its 'Rsetattr' response counterpart.
Signed-o
tests/9p: add 'Tsetattr' request to test client
Add and implement functions to 9pfs test client for sending a 9p2000.L 'Tsetattr' request and receiving its 'Rsetattr' response counterpart.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <20250312152933.383967-6-groug@kaod.org>
show more ...
|
#
eaab44cc |
| 24-Nov-2024 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: also check 'Tgetattr' in 'use-after-unlink' test
This verifies expected behaviour of previous bug fix patch.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Gre
tests/9p: also check 'Tgetattr' in 'use-after-unlink' test
This verifies expected behaviour of previous bug fix patch.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Reviewed-by: Greg Kurz <groug@kaod.org> Message-Id: <7017658155c517b9665b75333a97c79aa2d4f3df.1732465720.git.qemu_oss@crudebyte.com>
show more ...
|
#
462db8fb |
| 21-Feb-2024 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
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 t
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>
show more ...
|
#
dcae75fb |
| 27-Mar-2024 |
Daniel Henrique Barboza <dbarboza@ventanamicro.com> |
qtest/virtio-9p-test.c: remove g_test_slow() gate
Commit 558f5c42ef gated the local tests with g_test_slow() to skip them in 'make check'. The reported issue back then was this following CI problem:
qtest/virtio-9p-test.c: remove g_test_slow() gate
Commit 558f5c42ef gated the local tests with g_test_slow() to skip them in 'make check'. The reported issue back then was this following CI problem:
https://lists.nongnu.org/archive/html/qemu-devel/2020-11/msg05510.html
This problem ended up being fixed after it was detected with the recently added risc-v machine nodes [1]. virtio-9p-test.c is now creating and removing temporary dirs for each test run, instead of creating a single dir for the entire qos-test scope.
We're now able to run these tests with 'make check' in the CI, so let's go ahead and re-enable them.
This reverts commit 558f5c42efded3e0d0b20a90bce2a9a14580d824.
[1] https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg05807.html
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-Id: <20240327142011.805728-3-dbarboza@ventanamicro.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Tested-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
show more ...
|
#
981eb106 |
| 27-Mar-2024 |
Daniel Henrique Barboza <dbarboza@ventanamicro.com> |
qtest/virtio-9p-test.c: create/remove temp dirs after each test
The local 9p driver in virtio-9p-test.c its temporary dir right at the start of qos-test (via virtio_9p_create_local_test_dir()) and o
qtest/virtio-9p-test.c: create/remove temp dirs after each test
The local 9p driver in virtio-9p-test.c its temporary dir right at the start of qos-test (via virtio_9p_create_local_test_dir()) and only deletes it after qos-test is finished (via virtio_9p_remove_local_test_dir()).
This means that any qos-test machine that ends up running virtio-9p-test local tests more than once will end up re-using the same temp dir. This is what's happening in [1] after we introduced the riscv machine nodes: if we enable slow tests with the '-m slow' flag using qemu-system-riscv64, this is what happens:
- a temp dir is created;
- virtio-9p-device tests will run virtio-9p-test successfully;
- virtio-9p-pci tests will run virtio-9p-test, and fail right at the first slow test at fs_create_dir() because the "01" file was already created by fs_create_dir() test when running with the virtio-9p-device.
The root cause is that we're creating a single temporary dir, via the construct/destruct callbacks, and this temp dir is kept for the entire qos-test run.
We can change each test to clean after themselves. This approach would make the 'create' tests obsolete since we would need to create and delete dirs/files/symlinks for the cleanup, turning them into the 'unlinkat' tests that comes right after.
We chose a different approach that handles the root cause: do not use constructor/destructor to create the temp dir. Create one temp dir for each test, and remove it after the test is complete. This is the approach taken for other qtests like vhost-user-test.c where each test requires a setup() and a subsequent cleanup(), all of those instantiated in the .before callback.
[1] https://mail.gnu.org/archive/html/qemu-devel/2024-03/msg05807.html
Reported-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Message-Id: <20240327142011.805728-2-dbarboza@ventanamicro.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Tested-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
show more ...
|
#
43e0d9fb |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tunlinkat() and do_unlinkat()
As with previous patches, unify those 2 functions into a single function v9fs_tunlinkat() by using a declarative function arguments approach.
Sign
tests/9p: merge v9fs_tunlinkat() and do_unlinkat()
As with previous patches, unify those 2 functions into a single function v9fs_tunlinkat() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <1dea593edd464908d92501933c068388c01f1744.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
d41a9462 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tlink() and do_hardlink()
As with previous patches, unify those 2 functions into a single function v9fs_tlink() by using a declarative function arguments approach.
Signed-off-b
tests/9p: merge v9fs_tlink() and do_hardlink()
As with previous patches, unify those 2 functions into a single function v9fs_tlink() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <cb4d42203e1e4e6027df4924bbe4bdbc002f668b.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
9beabfa5 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tsymlink() and do_symlink()
As with previous patches, unify those 2 functions into a single function v9fs_tsymlink() by using a declarative function arguments approach.
Signed-
tests/9p: merge v9fs_tsymlink() and do_symlink()
As with previous patches, unify those 2 functions into a single function v9fs_tsymlink() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <563f3ad04fe596ce0ae1e2654d1d08237f18c830.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
bd4660d4 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tlcreate() and do_lcreate()
As with previous patches, unify those 2 functions into a single function v9fs_tlcreate() by using a declarative function arguments approach.
Signed-
tests/9p: merge v9fs_tlcreate() and do_lcreate()
As with previous patches, unify those 2 functions into a single function v9fs_tlcreate() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <4c01b2caa5f5b54a2020fc92701deadd2abf0571.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
e1168010 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tmkdir() and do_mkdir()
As with previous patches, unify those 2 functions into a single function v9fs_tmkdir() by using a declarative function arguments approach.
Signed-off-by
tests/9p: merge v9fs_tmkdir() and do_mkdir()
As with previous patches, unify those 2 functions into a single function v9fs_tmkdir() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <b87b2c972921df980440ff5b2d3e6bb8163d6551.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
d89146fd |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: convert v9fs_tflush() to declarative arguments
Use declarative function arguments for function v9fs_tflush().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <91
tests/9p: convert v9fs_tflush() to declarative arguments
Use declarative function arguments for function v9fs_tflush().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <91b7b154298c500d100b05137146c2905c3acdec.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
bb286ff8 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of twrite()
Now as twrite() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/9p: simplify callers of twrite()
Now as twrite() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <7f280ec6a1f9d8afed46567a796562c4dc28afa9.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
ac9e4e61 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: convert v9fs_twrite() to declarative arguments
Use declarative function arguments for function v9fs_twrite().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <be
tests/9p: convert v9fs_twrite() to declarative arguments
Use declarative function arguments for function v9fs_twrite().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <be0326e2d9ab66f68c06b1766ddf103849d570b4.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
0e4c4ff0 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of tlopen()
Now as tlopen() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/9p: simplify callers of tlopen()
Now as tlopen() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <f74b6153e079fc7a340e5cb575ee32e0fe1e0ae6.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
3878ce4c |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: convert v9fs_tlopen() to declarative arguments
Use declarative function arguments for function v9fs_tlopen().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <76
tests/9p: convert v9fs_tlopen() to declarative arguments
Use declarative function arguments for function v9fs_tlopen().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <765ab515353c56f88f0a163631f626a44e9565d6.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
a9a53769 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of treaddir()
Now as treaddir() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.c
tests/9p: simplify callers of treaddir()
Now as treaddir() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <7cec6f2c7011a481806c34908893b7282702a7a6.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
1ebacc40 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: convert v9fs_treaddir() to declarative arguments
Use declarative function arguments for function v9fs_treaddir().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id:
tests/9p: convert v9fs_treaddir() to declarative arguments
Use declarative function arguments for function v9fs_treaddir().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <a66aae4ceb19ec12d245b8c7f33a639584c8e272.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
28c73670 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of tgetattr()
Now as tgetattr() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.c
tests/9p: simplify callers of tgetattr()
Now as tgetattr() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <60c6a083f320b86f3172951445df7bbc895932e2.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
2af5be47 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: convert v9fs_tgetattr() to declarative arguments
Use declarative function arguments for function v9fs_tgetattr().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id:
tests/9p: convert v9fs_tgetattr() to declarative arguments
Use declarative function arguments for function v9fs_tgetattr().
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <d340a91be96fbfecfb8dacdd7558223b3c0d0e2c.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
1125ddf6 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of tattach()
Now as tattach() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com
tests/9p: simplify callers of tattach()
Now as tattach() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <9b50e5b89a0072e84a9191d18c19a53546a28bba.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
74a160ab |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tattach(), do_attach(), do_attach_rqid()
As with previous patches, unify those 3 functions into a single function v9fs_tattach() by using a declarative function arguments approa
tests/9p: merge v9fs_tattach(), do_attach(), do_attach_rqid()
As with previous patches, unify those 3 functions into a single function v9fs_tattach() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <a6756b30bf2a1b25729c5bbabd1c9534a8f20d6f.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
bee8fda2 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge v9fs_tversion() and do_version()
As with previous patches, unify functions v9fs_tversion() and do_version() into a single function v9fs_tversion() by using a declarative function arg
tests/9p: merge v9fs_tversion() and do_version()
As with previous patches, unify functions v9fs_tversion() and do_version() into a single function v9fs_tversion() by using a declarative function arguments approach.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <2d253491aaffd267ec295f056dda47456692cd0c.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
3f3e9232 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: simplify callers of twalk()
Now as twalk() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Me
tests/9p: simplify callers of twalk()
Now as twalk() is using a declarative approach, simplify the code of callers of this function.
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <8b9d3c656ad43b6c953d6bdacd8d9f4c8e599b2a.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|
#
569f3b63 |
| 04-Oct-2022 |
Christian Schoenebeck <qemu_oss@crudebyte.com> |
tests/9p: merge *walk*() functions
Introduce declarative function calls.
There are currently 4 different functions for sending a 9p 'Twalk' request: v9fs_twalk(), do_walk(), do_walk_rqids() and do_
tests/9p: merge *walk*() functions
Introduce declarative function calls.
There are currently 4 different functions for sending a 9p 'Twalk' request: v9fs_twalk(), do_walk(), do_walk_rqids() and do_walk_expect_error(). They are all doing the same thing, just in a slightly different way and with slightly different function arguments.
Merge those 4 functions into a single function by using a struct for function call arguments and use designated initializers when calling this function to turn usage into a declarative approach, which is better readable and easier to maintain.
Also move private functions genfid(), split() and split_free() from virtio-9p-test.c to virtio-9p-client.c.
Based-on: <E1odrya-0004Fv-97@lizzy.crudebyte.com> Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <607969dbfbc63c1be008df9131133711b046e979.1664917004.git.qemu_oss@crudebyte.com>
show more ...
|