shr – global mountpoints
bind ’#σ’ /shr
device provides global mountpoints in the form of share directories
services can be mounted.
Effectively, it is a global mountpoint registry that is separate from
device exports a mount tree and a control tree.
in the mount tree
are the share mountpoints themselves, while the directories in
contain the service files of the share.
To create a new share, create the directory
To mount a service in that share, create the file
and then write a text string (suitable for
giving the file descriptor number of an open
service. Any process
with the proper permission may then access
on the mount tree.
The service file can be reopened and passed to
or added to another share.
Multiple services can be mounted under a share forming a union
directory. New services get mounted before old ones.
Removing the service file unmounts the service from the share.
Creating shares and mounts requires read-write access in the share
directory. The special user
is prohibited from these operations.
To mount a 9p service from
to the shr device
echo 3 > '#σc'/myshare/myserv <>/srv/myserv
first appeared in 9front (July, 2011).