// Disk Manager data/functions
#define PAGESIZE 2048
typedef int PageId;
typedef struct DBdescriptor {
char *dbname;
int fd;
SpaceTable map;
NameTable names;
...
} *DB;
typedef struct RelDescriptor {
char *relname;
int start;
int npages;
...
} *Reln;
|