add text version of install(1)

This commit is contained in:
rsc 2005-11-28 16:36:57 +00:00
parent efea318b2e
commit bdbc55d352
8 changed files with 96 additions and 6 deletions

View file

@ -24,7 +24,6 @@ bloominit(Bloom *b, vlong vsize, u8int *data)
if(unpackbloomhead(b, data) < 0)
return -1;
fprint(2, "bloom size %lud nhash %d\n", b->size, b->nhash);
b->mask = b->size-1;
b->data = data;
return 0;
@ -49,7 +48,6 @@ readbloom(Part *p)
b = vtmallocz(sizeof *b);
if(readpart(p, 0, buf, sizeof buf) < 0)
return nil;
fprint(2, "header %.16H\n", buf);
if(bloominit(b, 0, buf) < 0){
vtfree(b);
return nil;

View file

@ -145,6 +145,8 @@ initpart(char *name, int mode)
if(hi == 0)
hi = dir->length;
part->size = hi - part->offset;
fprint(2, "part %s: file %s offset %,lld size %,lld\n",
name, file, part->offset, part->size);
#ifdef CANBLOCKSIZE
{
struct statfs sfs;