venti: import changes from plan 9
R=rsc CC=plan9port.codebot http://codereview.appspot.com/4523057
This commit is contained in:
parent
7fb06adf54
commit
f5a8ea6fd8
21 changed files with 141 additions and 63 deletions
|
|
@ -2,7 +2,7 @@
|
|||
#include "dat.h"
|
||||
#include "fns.h"
|
||||
|
||||
static int verbose;
|
||||
static int verbose, quiet;
|
||||
|
||||
void
|
||||
usage(void)
|
||||
|
|
@ -18,8 +18,10 @@ rdarena(Arena *arena)
|
|||
u64int a, e;
|
||||
u32int bs;
|
||||
|
||||
fprint(2, "copying %s to standard output\n", arena->name);
|
||||
printarena(2, arena);
|
||||
if (!quiet) {
|
||||
fprint(2, "copying %s to standard output\n", arena->name);
|
||||
printarena(2, arena);
|
||||
}
|
||||
|
||||
bs = MaxIoSize;
|
||||
if(bs < arena->blocksize)
|
||||
|
|
@ -51,6 +53,9 @@ threadmain(int argc, char *argv[])
|
|||
statsinit();
|
||||
|
||||
ARGBEGIN{
|
||||
case 'q':
|
||||
quiet++;
|
||||
break;
|
||||
case 'v':
|
||||
verbose++;
|
||||
break;
|
||||
|
|
@ -87,5 +92,5 @@ threadmain(int argc, char *argv[])
|
|||
}
|
||||
}
|
||||
|
||||
sysfatal("couldn't find arena %s\n", aname);
|
||||
sysfatal("couldn't find arena %s", aname);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue