diff options
author | Russ Cox <rsc@swtch.com> | 2008-06-19 19:13:47 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-06-19 19:13:47 -0400 |
commit | 3e4ceac760d5b2b7238cb27d13045df76c6d4c20 (patch) | |
tree | 3d2307b911b709b4051437815681819e3b08e4c6 | |
parent | c92f73e48196ca6c695a295f58b89a56b8aff121 (diff) | |
download | plan9port-3e4ceac760d5b2b7238cb27d13045df76c6d4c20.tar.gz plan9port-3e4ceac760d5b2b7238cb27d13045df76c6d4c20.tar.bz2 plan9port-3e4ceac760d5b2b7238cb27d13045df76c6d4c20.zip |
post9p: try mount9p before 9pfuse
-rw-r--r-- | src/lib9/post9p.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/post9p.c b/src/lib9/post9p.c index c05b3363..e894ef9e 100644 --- a/src/lib9/post9p.c +++ b/src/lib9/post9p.c @@ -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, (char*)0); else |