1 typedef struct MetaBlock MetaBlock;
2 typedef struct MetaEntry MetaEntry;
4 #define MaxBlock (1UL<<31)
7 BytesPerEntry = 100, /* estimate of bytes per dir entries - determines number of index entries in the block */
8 FullPercentage = 80, /* don't allocate in block if more than this percentage full */
9 FlushSize = 200, /* number of blocks to flush */
10 DirtyPercentage = 50, /* maximum percentage of dirty blocks */
22 int maxsize; /* size of block */
23 int size; /* size used */
24 int free; /* free space within used size */
25 int maxindex; /* entries allocated for table */
26 int nindex; /* amount of table used */
39 void _mbinit(MetaBlock*, u8int*, uint, uint);
40 int _mbsearch(MetaBlock*, char*, int*, MetaEntry*);