commit - 6654bd74cbcac31835b75cc473132c9a844073e4
commit + 9ec386fef4927034303b7e477f1570c09fba527f
blob - f7bd575f370ddf5e3bbac9c2bc54d8f85040b034
blob + 7e4f159d9ad95403c5bdcd4834948c0de2617c19
--- man/man4/9pfuse.4
+++ man/man4/9pfuse.4
.B -D
]
[
-.B -a
+.B -A
.I t
]
[
-.B -e
-.I t
+.B -a
+.I aname
]
.I addr
.I mtpt
.B -D
Print each FUSE and 9P message to standard error.
.TP
-.B -a\fI t
+.B -a\fI aname
+Use
+.I aname
+as the attach name.
+.TP
+.B -A\fI t
Set the kernel cache timeout for attribute information
to
.I t
(default 1.0) seconds.
-.TP
-.B -e\fI t
-Set the kernel cache timeout for directory entries to
-.I t
-(default 1.0) seconds.
.PD
.PP
The
blob - 15cbb8fbf564dd595e24165fd71938a3fb313ddf
blob + 82d7b1fe1967999fb4f1d3c29ae11d7a7733c46b
--- src/cmd/9pfuse/main.c
+++ src/cmd/9pfuse/main.c
int debug;
char *argv0;
+char *aname = "";
void fusedispatch(void*);
Channel *fusechan;
CFsys *fsys;
CFid *fsysroot;
-void init9p(char*);
+void init9p(char*, char*);
void
usage(void)
{
- fprint(2, "usage: 9pfuse [-D] [-a attrtimeout] address mtpt\n");
+ fprint(2, "usage: 9pfuse [-D] [-A attrtimeout] [-a aname] address mtpt\n");
exit(1);
}
chatty9pclient++;
debug++;
break;
- case 'a':
+ case 'A':
attrtimeout = atof(EARGF(usage()));
+ break;
+ case 'a':
+ aname = EARGF(usage());
break;
default:
usage();
setsid(); /* won't be able to use console, but can't be interrupted */
- init9p(argv[0]);
+ init9p(argv[0], aname);
initfuse(argv[1]);
fusechan = chancreate(sizeof(void*), 0);
}
void
-init9p(char *addr)
+init9p(char *addr, char *spec)
{
int fd;
if((fd = dial(netmkaddr(addr, "tcp", "564"), nil, nil, nil)) < 0)
sysfatal("dial %s: %r", addr);
- if((fsys = fsmount(fd, "")) == nil)
+ if((fsys = fsmount(fd, spec)) == nil)
sysfatal("fsmount: %r");
fsysroot = fsroot(fsys);
}