tests/9pfs: add virtio_9p_test_path()
commite55b178b5e139fc1b951ac8f56e48db716909006
authorChristian Schoenebeck <qemu_oss@crudebyte.com>
Thu, 8 Oct 2020 18:34:56 +0000 (8 20:34 +0200)
committerChristian Schoenebeck <qemu_oss@crudebyte.com>
Mon, 19 Oct 2020 12:25:40 +0000 (19 14:25 +0200)
treeba423ac73be1cc0bc43906b1867a24a69adfc959
parent051f0e5be12b2760d7fb2095b864b26ffe21f6de
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 <qemu_oss@crudebyte.com>
Message-Id: <b563d3c73c6391ec927a2622c9f65c09ca56bd83.1602182956.git.qemu_oss@crudebyte.com>
Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>
tests/qtest/libqos/virtio-9p.c
tests/qtest/libqos/virtio-9p.h