freebsd-src/share/man
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
..
man1 intro.1: 2024 edition 2024-04-12 10:58:36 -06:00
man3 man filesystems: fix xrefs after move to section 4 2024-05-16 10:25:29 -06:00
man3lua Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
man4 mx25l.4: Document the correct disk device path 2024-06-11 17:43:18 +01:00
man5 Add an implementation of the 9P filesystem 2024-06-19 13:12:04 +01:00
man6 Remove $FreeBSD$: two-line nroff pattern 2023-08-16 11:55:10 -06:00
man7 development.7: markup nits, tag spdx 2024-06-17 12:52:25 -04:00
man8 rc.subr: improve description for ${name}_offcmd 2024-06-18 16:13:51 +07:00
man9 accf_tls(9): Fix grammar in description (singular/plural) 2024-06-10 08:29:26 +00:00
Makefile share/man: Add mandoc.db files to METALOG 2024-01-30 22:17:34 +00:00