freebsd-src/share/man/man5
Doug Rabson e97ad33a89 Add an implementation of the 9P filesystem
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>
2024-06-19 13:12:04 +01:00
..
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 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
devfs.rules.5 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
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 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
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 Add an implementation of the 9P filesystem 2024-06-19 13:12:04 +01:00
Makefile.depend
moduli.5
motd.5
mount.conf.5 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
networks.5
nsmb.conf.5 smbfs manuals: describe consistently 2024-05-30 19:29:17 -06:00
nsswitch.conf.5
os-release.5
p9fs.5 Add an implementation of the 9P filesystem 2024-06-19 13:12:04 +01:00
passwd.5
pbm.5
periodic.conf.5
pf.conf.5 pf.conf.5: remove 'set limit tables' 2024-06-07 20:59:02 +02:00
pf.os.5
phones.5
portindex.5
protocols.5
quota.user.5
rc.conf.5 rc.subr: add new sysv option for service jails 2024-06-14 20:15:45 +02:00
rctl.conf.5
regdomain.5
remote.5
resolver.5
services.5
shells.5
src.conf.5 src.conf.5: Regen 2024-05-22 17:02:26 +00:00
stab.5
style.Makefile.5
style.mdoc.5
sysctl.conf.5