3 shr \- global mountpoints
6 .B bind -a '#σ/share' /dev
9 .BI #σc/ share1/service1
10 .BI #σc/ share1/service2
16 device provides global mountpoints in the form of share directories
19 services can be mounted on.
21 Effectively, it is a global mountpoint registry that is separate from
26 device exports a mount tree and a control tree. The directories
29 are the share mountpoints themselve and in the control tree
31 share directories list the service files of the share.
33 To create a new share, create the directory
36 To mount a service in that share, create the file
38 and then write a text string (suitable for
42 giving the file descriptor number of an open
45 with the proper permission may then access
49 The service file can be reopened and passed to
53 or added to another share.
55 Multiple services can be mounted under a share forming a union
56 directory. New services get mounted before old ones.
57 Removing the service file unmounts the service from the share.
59 Creating shares and mounts requires read-write access in the share
60 directory. The special user
62 is prohibited from these operations.
64 .B /sys/src/9/port/devshr.c