[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/5] tests/9pfs: Set alloc in fs_create_dir()
From: |
Greg Kurz |
Subject: |
[PATCH v2 3/5] tests/9pfs: Set alloc in fs_create_dir() |
Date: |
Tue, 20 Oct 2020 18:09:27 +0200 |
User-agent: |
StGit/0.21 |
fs_create_dir() is a top level test function. It should set alloc.
Signed-off-by: Greg Kurz <groug@kaod.org>
---
tests/qtest/virtio-9p-test.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c
index 52d102a3fc9f..cc52ae9a77b3 100644
--- a/tests/qtest/virtio-9p-test.c
+++ b/tests/qtest/virtio-9p-test.c
@@ -1019,6 +1019,7 @@ static void fs_readdir_split_512(void *obj, void *data,
static void fs_create_dir(void *obj, void *data, QGuestAllocator *t_alloc)
{
QVirtio9P *v9p = obj;
+ alloc = t_alloc;
struct stat st;
char *root_path = virtio_9p_test_path("");
char *new_dir = virtio_9p_test_path("01");
- [PATCH v2 0/5] tests/9pfs: Code refactoring, Greg Kurz, 2020/10/20
- [PATCH v2 1/5] tests/9pfs: Factor out do_version() helper, Greg Kurz, 2020/10/20
- [PATCH v2 2/5] tests/9pfs: Turn fs_readdir_split() into a helper, Greg Kurz, 2020/10/20
- [PATCH v2 3/5] tests/9pfs: Set alloc in fs_create_dir(),
Greg Kurz <=
- [PATCH v2 4/5] tests/9pfs: Factor out do_attach() helper, Greg Kurz, 2020/10/20
- [PATCH v2 5/5] tests/9pfs: Turn fs_mkdir() into a helper, Greg Kurz, 2020/10/20
- Re: [PATCH v2 0/5] tests/9pfs: Code refactoring, Christian Schoenebeck, 2020/10/20