summaryrefslogtreecommitdiff
path: root/lib/lib9p
diff options
context:
space:
mode:
authorJakub Wojciech Klama <jceel@FreeBSD.org>2020-10-03 19:05:13 +0000
committerJakub Wojciech Klama <jceel@FreeBSD.org>2020-10-03 19:05:13 +0000
commit100353cfbf882e23c911300ebd0cb458bd3ee975 (patch)
tree243f1f26c42494f3e4b214e97433bcf59e1e436b /lib/lib9p
parent067bb8206d86526a72c7e7ba6285103b2cad3ad3 (diff)
downloadsrc-test-100353cfbf882e23c911300ebd0cb458bd3ee975.tar.gz
src-test-100353cfbf882e23c911300ebd0cb458bd3ee975.zip
Add virtio-9p (aka VirtFS) filesystem sharing to bhyve.
VirtFS allows sharing an arbitrary directory tree between bhyve virtual machine and the host. Current implementation has a fairly complete support for 9P2000.L protocol, except for the extended attribute support. It has been verified to work with the qemu-kvm hypervisor. Reviewed by: rgrimes, emaste, jhb, trasz Approved by: trasz (mentor) MFC after: 1 month Relnotes: yes Sponsored by: Conclusive Engineering (development), vStack.com (funding) Differential Revision: https://reviews.freebsd.org/D10335
Notes
Notes: svn path=/head/; revision=366413
Diffstat (limited to 'lib/lib9p')
-rw-r--r--lib/lib9p/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile
new file mode 100644
index 0000000000000..c909bdb1f781a
--- /dev/null
+++ b/lib/lib9p/Makefile
@@ -0,0 +1,28 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/lib9p
+CFLAGS+= -DWITH_CASPER
+CFLAGS+= -I${.CURDIR}
+CFLAGS+= -I${.CURDIR}/../../contrib/lib9p
+
+LIB= 9p
+PACKAGE= lib${LIB}
+SHLIB_MAJOR= 1
+SRCS= connection.c \
+ genacl.c \
+ hashtable.c \
+ log.c \
+ pack.c \
+ request.c \
+ rfuncs.c \
+ threadpool.c \
+ utils.c \
+ backend/fs.c \
+ transport/socket.c
+
+INCSDIR= ${INCLUDEDIR}/lib9p
+INCS= fid.h lib9p.h backend/fs.h
+
+LIBADD= sbuf
+
+.include <bsd.lib.mk>