From e55b178b5e139fc1b951ac8f56e48db716909006 Mon Sep 17 00:00:00 2001 From: Christian Schoenebeck Date: Thu, 8 Oct 2020 20:34:56 +0200 Subject: tests/9pfs: add virtio_9p_test_path() This new public function virtio_9p_test_path() allows 9pfs 'local' tests to translate a path from guest scope to host scope. For instance by passing an empty string it would return the root path on host of the exported 9pfs tree. Signed-off-by: Christian Schoenebeck Message-Id: Signed-off-by: Christian Schoenebeck --- tests/qtest/libqos/virtio-9p.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/qtest/libqos/virtio-9p.h') diff --git a/tests/qtest/libqos/virtio-9p.h b/tests/qtest/libqos/virtio-9p.h index 326a603..19a4d97 100644 --- a/tests/qtest/libqos/virtio-9p.h +++ b/tests/qtest/libqos/virtio-9p.h @@ -49,4 +49,9 @@ struct QVirtio9PDevice { */ void virtio_9p_assign_local_driver(GString *cmd_line, const char *args); +/** + * Returns path on host to the passed guest path. Result must be freed. + */ +char *virtio_9p_test_path(const char *path); + #endif -- cgit v1.1