On 12/12/2019 16:38, Dr. David Alan Gilbert (git) wrote:
From: Stefan Hajnoczi <stefa...@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
---
Makefile | 7 +++
tools/virtiofsd/virtiofsd.texi | 85 ++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+)
create mode 100644 tools/virtiofsd/virtiofsd.texi
... deleted ...
+@c man begin EXAMPLES
+Export @code{/var/lib/fs/vm001/} on vhost-user UNIX domain socket
@code{/var/run/vm001-vhost-fs.sock}:
+
+@example
+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 \
+ -o
default_permissions,allow_other,user_id=0,group_id=0,rootmode=040000,dax \
+ myfs /mnt
Should this 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>