commit 0d4243f78929fe3b7f7501776483f10cd515b482 from: rsc date: Fri Feb 11 16:53:27 2005 UTC use nsamount and fsamount commit - 6613ff14c762dd0c14df64b3b95450de7390e369 commit + 0d4243f78929fe3b7f7501776483f10cd515b482 blob - cc4336b373b578984604234a4711f34ddb99c3ea blob + 2f76963c06ce9efd4256584a9231dd40e8c93a96 --- src/cmd/9p.c +++ src/cmd/9p.c @@ -3,6 +3,7 @@ #include #include #include <9pclient.h> +#include #include char *addr; @@ -52,7 +53,8 @@ threadmain(int argc, char **argv) addr = EARGF(usage()); break; case 'D': - + chatty9pclient = 1; + break; default: usage(); }ARGEND @@ -86,7 +88,7 @@ xparse(char *name, char **path) else *p++ = 0; *path = p; - fs = nsmount(name, ""); + fs = nsamount(name, ""); if(fs == nil) sysfatal("mount: %r"); }else{ @@ -94,7 +96,7 @@ xparse(char *name, char **path) fprint(2, "dial %s...", addr); if((fd = dial(addr, nil, nil, nil)) < 0) sysfatal("dial: %r"); - if((fs = fsmount(fd, "")) == nil) + if((fs = fsamount(fd, "")) == nil) sysfatal("fsmount: %r"); } return fs;