venti updates

This commit is contained in:
rsc 2005-07-24 20:15:44 +00:00
parent 7ba8aa0c70
commit 23fb2edb22
13 changed files with 166 additions and 48 deletions

View file

@ -141,6 +141,10 @@ threadmain(int argc, char *argv[])
long ncache = 1000;
int readOnly = 1;
fmtinstall('H', encodefmt);
fmtinstall('V', vtscorefmt);
fmtinstall('F', vtfcallfmt);
defsrv = nil;
ARGBEGIN{
case 'd':
@ -164,6 +168,9 @@ threadmain(int argc, char *argv[])
case 'p':
noperm = 1;
break;
case 'V':
chattyventi = 1;
break;
default:
usage();
}ARGEND
@ -198,7 +205,6 @@ threadmain(int argc, char *argv[])
if(post9pservice(p[1], defsrv) != 0)
sysfatal("post9pservice");
threadexits(0);
}
@ -840,9 +846,6 @@ init(char *file, char *host, long ncache, int readOnly)
notify(notifyf);
user = getuser();
fmtinstall('V', vtscorefmt);
// fmtinstall('R', vtErrFmt);
conn = vtdial(host);
if(conn == nil)
sysfatal("could not connect to server: %r");