1 typedef struct Disk Disk;
4 * Reference to the disk
9 ulong nb; /* number of blocks */
10 ulong nab; /* number of allocation blocks */
11 int b2b; /* allocation bits to a block */
12 int p2b; /* Dptr's per page */
13 char name[CACHENAMELEN];
16 int dinit(Disk*, int, int, char*);
17 int dformat(Disk*, int, char*, ulong, ulong);
18 ulong dalloc(Disk*, Dptr*);
19 ulong dpalloc(Disk*, Dptr*);
20 int dfree(Disk*, Dptr*);
24 #define DPRINT if(debug)fprint