tests/9pfs: Set alloc in fs_create_dir()
authorGreg Kurz <groug@kaod.org>
Tue, 20 Oct 2020 16:09:27 +0000 (18:09 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Sun, 1 Nov 2020 18:44:29 +0000 (19:44 +0100)
fs_create_dir() is a top level test function. It should set alloc.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160321016764.266767.3763279057643874020.stgit@bahia.lan>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/qtest/virtio-9p-test.c

index 92d12f5e02a8fec7d2d83dea8bedbaead35f3f41..ab59431d79ba2f4c646d128bc46b9e5884a16306 100644 (file)
@@ -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");