On 27/01/2020 16:25, Stefan Hajnoczi wrote:
Document the virtiofsd(1) program and its command-line options. This
man page is a rST conversion of the original texi documentation that I
wrote.
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
---
Based-on: 20200124162606.8787-1-peter.mayd...@linaro.org
("[PATCH v2 0/8] qemu-img, qemu-trace-stap, virtfs-proxy-helper: convert
to rST")
---
MAINTAINERS | 1 +
Makefile | 8 ++-
docs/interop/conf.py | 5 +-
docs/interop/index.rst | 1 +
docs/interop/virtiofsd.rst | 123 +++++++++++++++++++++++++++++++++++++
5 files changed, 136 insertions(+), 2 deletions(-)
create mode 100644 docs/interop/virtiofsd.rst
[ ... deleted ...]
+
+Examples
+--------
+
+Export ``/var/lib/fs/vm001/`` on vhost-user UNIX domain socket
+``/var/run/vm001-vhost-fs.sock``:
+
+::
+
+ host# virtiofsd --socket-path=/var/run/vm001-vhost-fs.sock -o
source=/var/lib/fs/vm001
+ host# qemu-system-x86_64 \
+ -chardev socket,id=char0,path=/var/run/vm001-vhost-fs.sock \
+ -device vhost-user-fs-pci,chardev=char0,tag=myfs \
+ -object memory-backend-file,id=mem,size=4G,mem-path=/dev/shm,share=on \
+ -numa node,memdev=mem \
+ ...
+ guest# mount -t virtio_fs myfs /mnt
This should be 'mount -t virtiofs myfs /mnt' like on
https://virtio-fs.gitlab.io/howto-qemu.html
otherwise
Reviewed-by: Liam Merwick <liam.merw...@oracle.com>