From d62a9f326a9cf76488a0967007c12e0841117cdf Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 4 Apr 2006 18:23:57 +0000 Subject: add v9fs example --- man/man4/srv.4 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/man/man4/srv.4 b/man/man4/srv.4 index a74f43f1..1e8b91de 100644 --- a/man/man4/srv.4 +++ b/man/man4/srv.4 @@ -64,6 +64,27 @@ available as service is an .IR rc (1) script; examine it to see what local conventions apply. +.SH EXAMPLES +List the root directory on +.IR sources : +.IP +.EX +9fs sources +9p ls sources +.EE +.PP +Mount a remote file server +.I bootes +on Linux using the kernel 9P mount driver, +with +.I srv +handling authentication: +.IP +.EX +srv -a sources.cs.bell-labs.com sources +sudo mount -t 9P -o user=$USER,uid=`id -u`,gid=`id -g`,proto=unix + `namespace`/sources /n/sources +.EE .SH SOURCE .B \*9/src/cmd/srv.c .br -- cgit v1.2.3