tsrv(4), mount: update v9fs usage - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit e31375ac4e12494f6a085cb2c9d51e9e61dd8216 | |
parent fee1a4639b69fb7402adc31432f492007e72d6d9 | |
Author: David du Colombier <[email protected]> | |
Date: Sun, 5 Aug 2012 19:17:18 +0200 | |
srv(4), mount: update v9fs usage | |
The v9fs usage is documented on | |
https://www.kernel.org/doc/Documentation/filesystems/9p.txt | |
R=rsc | |
http://codereview.appspot.com/6445072 | |
Diffstat: | |
M bin/mount | 4 ++-- | |
M man/man4/srv.4 | 2 +- | |
2 files changed, 3 insertions(+), 3 deletions(-) | |
--- | |
diff --git a/bin/mount b/bin/mount | |
t@@ -8,8 +8,8 @@ switch(`{uname}){ | |
case Linux | |
if(9 grep -si ' 9p(2000)?$' /proc/filesystems){ | |
if(u test -S $1) | |
- exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2 | |
- exec u mount -t 9p -o proto'='tcp,name'='$USER $1 $2 | |
+ exec u mount -t 9p -o trans'='unix,uname'='$USER $1 $2 | |
+ exec u mount -t 9p -o trans'='tcp,uname'='$USER $1 $2 | |
} | |
if(9 grep -si ' fuse$' /proc/filesystems) | |
exec 9pfuse $1 $2 | |
diff --git a/man/man4/srv.4 b/man/man4/srv.4 | |
t@@ -90,7 +90,7 @@ 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 | |
+sudo mount -t 9p -o trans=unix,uname=$USER,dfltuid=`id -u`,dfltgid=`id -g` | |
`namespace`/sources /n/sources | |
.EE | |
.SH SOURCE |