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

@ -30,7 +30,7 @@ threadmain(int argc, char *argv[])
host = EARGF(usage());
break;
case 't':
type = atoi(argv[1]);
type = atoi(EARGF(usage()));
break;
default:
usage();
@ -62,10 +62,9 @@ threadmain(int argc, char *argv[])
break;
}
}
}else{
type = atoi(argv[1]);
}else
n = vtread(z, score, type, buf, VtMaxLumpSize);
}
vthangup(z);
if(n < 0)
sysfatal("could not read block: %r");