commit - a2df31f46d2119bf79d5b0e0fba07cef4564abcc
commit + e7e953b3dadb5aba3bb2f3f05b2beff94934a4dc
blob - 3d8e78412c7347e9f40a980c763cae08e9158a75
blob + f47d01a12f60382bd877ba126295f7a2496cc021
--- src/cmd/venti/srv/dat.h
+++ src/cmd/venti/srv/dat.h
extern u8int zeroscore[VtScoreSize];
extern int compressblocks;
extern int writestodevnull; /* dangerous - for performance debugging */
+extern int bootstrap; /* writes but does not index - cannot read */
extern int collectstats;
extern QLock memdrawlock;
extern int icachesleeptime;
blob - 5a3f3c6fa36aae3db6d83252e4dfbd3182903032
blob + 83d80ca77868ea89ceb80135161a662c36aab1e8
--- src/cmd/venti/srv/httpd.c
+++ src/cmd/venti/srv/httpd.c
"ignorebloom", &ignorebloom,
"syncwrites", &syncwrites,
"icacheprefetch", &icacheprefetch,
+ "bootstrap", &bootstrap,
0
};
blob - af76819f92e5d96fcbc027bc4b65bcd2badf3b11
blob + 3055b981d586ceb8cbb30e8cff8ae480da9473fc
--- src/cmd/venti/srv/icache.c
+++ src/cmd/venti/srv/icache.c
icachelookup(u8int score[VtScoreSize], int type, IAddr *ia)
{
IEntry *ie;
+
+ if(bootstrap)
+ return -1;
qlock(&icache.lock);
addstat(StatIcacheLookup, 1);
{
ISum *toload;
+ if(bootstrap)
+ return -1;
+
qlock(&icache.lock);
icacheinsert(score, ia, state);
if(state == IEClean)
blob - 9b244948b118351d6ce3e686b710de25fa5bc1c6
blob + cc0a26dc6fe290ae59604f07ea65d19b98f8d53a
--- src/cmd/venti/srv/lump.c
+++ src/cmd/venti/srv/lump.c
#include "dat.h"
#include "fns.h"
+int bootstrap = 0;
int syncwrites = 0;
int queuewrites = 0;
int writestodevnull = 0;