1 typedef struct MetaBlock MetaBlock;
2 typedef struct MetaEntry MetaEntry;
10 BytesPerEntry = 100, /* estimate of bytes per dir entries - determines number of index entries in the block */
11 FullPercentage = 80, /* don't allocate in block if more than this percentage full */
12 FlushSize = 200, /* number of blocks to flush */
13 DirtyPercentage = 50, /* maximum percentage of dirty blocks */
25 int maxsize; /* size of block */
26 int size; /* size used */
27 int free; /* free space within used size */
28 int maxindex; /* entries allocated for table */
29 int nindex; /* amount of table used */
42 void _mbinit(MetaBlock*, u8int*, uint, uint);
43 int _mbsearch(MetaBlock*, char*, int*, MetaEntry*);