tpost9p: try mount9p before 9pfuse - plan9port - [fork] Plan 9 from user space | |
git clone git://src.adamsgaard.dk/plan9port | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3e4ceac760d5b2b7238cb27d13045df76c6d4c20 | |
parent c92f73e48196ca6c695a295f58b89a56b8aff121 | |
Author: Russ Cox <[email protected]> | |
Date: Thu, 19 Jun 2008 19:13:47 -0400 | |
post9p: try mount9p before 9pfuse | |
Diffstat: | |
M src/lib9/post9p.c | 4 ++++ | |
1 file changed, 4 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/src/lib9/post9p.c b/src/lib9/post9p.c | |
t@@ -66,6 +66,10 @@ post9pservice(int fd, char *name, char *mtpt) | |
dup(fd, 0); | |
for(i=3; i<20; i++) | |
close(i); | |
+ | |
+ /* Try v9fs on Linux, which will mount 9P directly. */ | |
+ execlp("mount9p", "mount9p", "-", mtpt, (char*)0); | |
+ | |
if(chattyfuse) | |
execlp("9pfuse", "9pfuse", "-D", "-", mtpt, (c… | |
else |