diff options
| author | Jakub Wojciech Klama <jceel@FreeBSD.org> | 2020-10-03 19:05:13 +0000 |
|---|---|---|
| committer | Jakub Wojciech Klama <jceel@FreeBSD.org> | 2020-10-03 19:05:13 +0000 |
| commit | 100353cfbf882e23c911300ebd0cb458bd3ee975 (patch) | |
| tree | 243f1f26c42494f3e4b214e97433bcf59e1e436b /lib | |
| parent | 067bb8206d86526a72c7e7ba6285103b2cad3ad3 (diff) | |
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
svn path=/head/; revision=366413
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Makefile | 1 | ||||
| -rw-r--r-- | lib/lib9p/Makefile | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index ff3e36a7136e..f5006d4eb5f4 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -30,6 +30,7 @@ SUBDIR= ${SUBDIR_BOOTSTRAP} \ .WAIT \ libsqlite3 \ geom \ + lib9p \ libalias \ libarchive \ libauditd \ diff --git a/lib/lib9p/Makefile b/lib/lib9p/Makefile new file mode 100644 index 000000000000..c909bdb1f781 --- /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> |
