tpost9p: try mount9p before 9pfuse - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3e4ceac760d5b2b7238cb27d13045df76c6d4c20
(DIR) parent c92f73e48196ca6c695a295f58b89a56b8aff121
(HTM) Author: Russ Cox <rsc@swtch.com>
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(-)
---
(DIR) 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, (char*)0);
else