venti: import changes from plan 9
R=rsc CC=plan9port.codebot http://codereview.appspot.com/5325044
This commit is contained in:
parent
91b0ee088e
commit
1e0c038342
5 changed files with 8 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
#include <u.h>
|
#include <u.h>
|
||||||
#include <libc.h>
|
#include <libc.h>
|
||||||
#include <bio.h>
|
#include <bio.h>
|
||||||
|
#include <ctype.h>
|
||||||
#include <thread.h>
|
#include <thread.h>
|
||||||
#include <venti.h>
|
#include <venti.h>
|
||||||
#include <libsec.h>
|
#include <libsec.h>
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ DIRS=srv
|
||||||
TARG=\
|
TARG=\
|
||||||
copy\
|
copy\
|
||||||
read\
|
read\
|
||||||
|
ro\
|
||||||
sync\
|
sync\
|
||||||
write\
|
write\
|
||||||
dump\
|
dump\
|
||||||
|
|
|
||||||
|
|
@ -425,7 +425,8 @@ insertscore(u8int score[VtScoreSize], IAddr *ia, int state, AState *as)
|
||||||
assert(state == IEDirty);
|
assert(state == IEDirty);
|
||||||
toload = nil;
|
toload = nil;
|
||||||
if(as == nil)
|
if(as == nil)
|
||||||
fprint(2, "%T insertscore IEDirty without as; called from %lux\n", getcallerpc(&score));
|
fprint(2, "%T insertscore IEDirty without as; called from %#p\n",
|
||||||
|
getcallerpc(&score));
|
||||||
else{
|
else{
|
||||||
if(icache.as.aa > as->aa)
|
if(icache.as.aa > as->aa)
|
||||||
fprint(2, "%T insertscore: aa moving backward: %#llux -> %#llux\n", icache.as.aa, as->aa);
|
fprint(2, "%T insertscore: aa moving backward: %#llux -> %#llux\n", icache.as.aa, as->aa);
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ LIB=$SLIB $LIBDIR/libventi.a
|
||||||
HFILES= dat.h\
|
HFILES= dat.h\
|
||||||
fns.h\
|
fns.h\
|
||||||
stdinc.h\
|
stdinc.h\
|
||||||
|
$PLAN9/include/venti.h\
|
||||||
|
$PLAN9/include/httpd.h\
|
||||||
|
|
||||||
TARG=\
|
TARG=\
|
||||||
venti\
|
venti\
|
||||||
|
|
@ -61,6 +63,7 @@ TARG=\
|
||||||
fmtisect\
|
fmtisect\
|
||||||
mirrorarenas\
|
mirrorarenas\
|
||||||
printarena\
|
printarena\
|
||||||
|
printarenapart\
|
||||||
rdarena\
|
rdarena\
|
||||||
syncindex\
|
syncindex\
|
||||||
verifyarena\
|
verifyarena\
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ usage(void)
|
||||||
"[-C lumpcachesize] [-h httpaddress] [-I indexcachesize] [-W webroot]\n");
|
"[-C lumpcachesize] [-h httpaddress] [-I indexcachesize] [-W webroot]\n");
|
||||||
threadexitsall("usage");
|
threadexitsall("usage");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
threadmain(int argc, char *argv[])
|
threadmain(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
|
@ -137,7 +138,6 @@ threadmain(int argc, char *argv[])
|
||||||
if(httpdinit(haddr, webroot) < 0)
|
if(httpdinit(haddr, webroot) < 0)
|
||||||
fprint(2, "warning: can't start http server: %r");
|
fprint(2, "warning: can't start http server: %r");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprint(2, "init...");
|
fprint(2, "init...");
|
||||||
|
|
||||||
if(mem == 0xffffffffUL)
|
if(mem == 0xffffffffUL)
|
||||||
|
|
@ -163,7 +163,6 @@ threadmain(int argc, char *argv[])
|
||||||
(mainindex->narenas + mainindex->nsects*4 + 16);
|
(mainindex->narenas + mainindex->nsects*4 + 16);
|
||||||
if(bcmem < minbcmem)
|
if(bcmem < minbcmem)
|
||||||
bcmem = minbcmem;
|
bcmem = minbcmem;
|
||||||
|
|
||||||
if(0) fprint(2, "initialize %d bytes of disk block cache\n", bcmem);
|
if(0) fprint(2, "initialize %d bytes of disk block cache\n", bcmem);
|
||||||
initdcache(bcmem);
|
initdcache(bcmem);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue