mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Add mount point support in import
This commit is contained in:
parent
52b599a63c
commit
cf721a08ec
1 changed files with 6 additions and 2 deletions
|
@ -14,6 +14,7 @@ char *srv;
|
|||
char *addr;
|
||||
char *ns;
|
||||
int export;
|
||||
char *mtpt;
|
||||
|
||||
void shuffle(void *arg);
|
||||
int post(char *srv);
|
||||
|
@ -33,7 +34,7 @@ enum
|
|||
void
|
||||
usage(void)
|
||||
{
|
||||
fprint(2, "usage: %s [-df] [-s service] [-n remote-ns] [-p remote-prog] remote-system\n", argv0);
|
||||
fprint(2, "usage: %s [-df] [-s service] [-n remote-ns] [-p remote-prog] [-m mtpt] remote-system\n", argv0);
|
||||
threadexitsall("usage");
|
||||
}
|
||||
|
||||
|
@ -85,6 +86,9 @@ threadmain(int argc, char *argv[])
|
|||
case 's': /* name of service */
|
||||
srv = EARGF(usage());
|
||||
break;
|
||||
case 'm':
|
||||
mtpt = EARGF(usage());
|
||||
break;
|
||||
case 'R':
|
||||
rem = 1;
|
||||
break;
|
||||
|
@ -156,7 +160,7 @@ post(char *srv)
|
|||
fatal("can't create pipe: %r");
|
||||
|
||||
/* 0 will be server end, 1 will be client end */
|
||||
if(post9pservice(p[1], srv, nil) < 0)
|
||||
if(post9pservice(p[1], srv, mtpt) < 0)
|
||||
fatal("post9pservice plumb: %r");
|
||||
close(p[1]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue