mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
e97ad33a89
This is derived from swills@ fork of the Juniper virtfs with many changes by me including bug fixes, style improvements, clearer layering and more consistent logging. The filesystem is renamed to p9fs to better reflect its function and to prevent possible future confusion with virtio-fs. Several updates and fixes from Juniper have been integrated into this version by Val Packett and these contributions along with the original Juniper authors are credited below. To use this with bhyve, add 'virtio_p9fs_load=YES' to loader.conf. The bhyve virtio-9p device allows access from the guest to files on the host by mapping a 'sharename' to a host path. It is possible to use p9fs as a root filesystem by adding this to /boot/loader.conf: vfs.root.mountfrom="p9fs:sharename" for non-root filesystems add something like this to /etc/fstab: sharename /mnt p9fs rw 0 0 In both examples, substitute the share name used on the bhyve command line. The 9P filesystem protocol relies on stateful file opens which map protocol-level FIDs to host file descriptors. The FreeBSD vnode interface doesn't really support this and we use heuristics to guess the right FID to use for file operations. This can be confused by privilege lowering and does not guarantee that the FID created for a given file open is always used for file operations, even if the calling process is using the file descriptor from the original open call. Improving this would involve changes to the vnode interface which is out-of-scope for this import. Differential Revision: https://reviews.freebsd.org/D41844 Reviewed by: kib, emaste, dch MFC after: 3 months Co-authored-by: Val Packett <val@packett.cool> Co-authored-by: Ka Ho Ng <kahon@juniper.net> Co-authored-by: joyu <joyul@juniper.net> Co-authored-by: Kumara Babu Narayanaswamy <bkumara@juniper.net> |
||
---|---|---|
.. | ||
a.out.5 | ||
acct.5 | ||
ar.5 | ||
bluetooth.device.conf.5 | ||
bluetooth.hosts.5 | ||
bluetooth.protocols.5 | ||
boot.config.5 | ||
core.5 | ||
devfs.conf.5 | ||
devfs.rules.5 | ||
device.hints.5 | ||
dir.5 | ||
disktab.5 | ||
elf.5 | ||
ethers.5 | ||
eui64.5 | ||
fbtab.5 | ||
forward.5 | ||
freebsd-update.conf.5 | ||
fs.5 | ||
fstab.5 | ||
group.5 | ||
hesiod.conf.5 | ||
hosts.5 | ||
hosts.equiv.5 | ||
hosts.lpd.5 | ||
intro.5 | ||
libmap.conf.5 | ||
link.5 | ||
mailer.conf.5 | ||
make.conf.5 | ||
Makefile | ||
Makefile.depend | ||
moduli.5 | ||
motd.5 | ||
mount.conf.5 | ||
networks.5 | ||
nsmb.conf.5 | ||
nsswitch.conf.5 | ||
os-release.5 | ||
p9fs.5 | ||
passwd.5 | ||
pbm.5 | ||
periodic.conf.5 | ||
pf.conf.5 | ||
pf.os.5 | ||
phones.5 | ||
portindex.5 | ||
protocols.5 | ||
quota.user.5 | ||
rc.conf.5 | ||
rctl.conf.5 | ||
regdomain.5 | ||
remote.5 | ||
resolver.5 | ||
services.5 | ||
shells.5 | ||
src.conf.5 | ||
stab.5 | ||
style.Makefile.5 | ||
style.mdoc.5 | ||
sysctl.conf.5 |