post9p: try mount9p before 9pfuse

This commit is contained in:
Russ Cox 2008-06-19 19:13:47 -04:00
parent c92f73e481
commit 3e4ceac760

View file

@ -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