]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/3/shr
vt: implement proper selections (thanks Ori_B)
[plan9front.git] / sys / man / 3 / shr
index c48f7f0343b2920b4f61ea640f944ea1bc0716e7..e20e8641a70ea2ec9f37e7d96543f89d90814d18 100644 (file)
@@ -27,9 +27,9 @@ device exports a mount tree and a control tree.
 The directories
 in the mount tree
 .BI #σ
-are the share mountpoints themselves, while the control tree
+are the share mountpoints themselves, while the directories in
 .BI #σc
-lists the service files of the share.
+contain the service files of the share.
 .PP
 To create a new share, create the directory
 .B #σc/myshare
@@ -50,7 +50,7 @@ on the mount tree.
 The service file can be reopened and passed to
 .IR mount
 (see
-.IR bind(2))
+.IR bind (2))
 or added to another share.
 .PP
 Multiple services can be mounted under a share forming a union
@@ -61,5 +61,17 @@ Creating shares and mounts requires read-write access in the share
 directory. The special user
 .B none
 is prohibited from these operations.
+.SH EXAMPLES
+To mount a 9p service from
+.IR srv (3)
+to the shr device
+.IP
+.EX
+mkdir '#σc'/myshare
+echo 3 > '#σc'/myshare/myserv <>[3]/srv/myserv
+.EE
 .SH SOURCE
 .B /sys/src/9/port/devshr.c
+.SH HISTORY
+.I Shr
+first appeared in 9front (July, 2011).