1fentry *read_fentries(FILE *fp){
2 fentry *files[MAXFILES];
3
4 // EXTRACT FENTRIES AND FNODES FROM FILE
5 if ((fread(files, sizeof(fentry), MAXFILES, fp)) == 0) {
6 fprintf(stderr, "Error: could not read file entries\n");
7 closefs(fp);
8 exit(1);
9 }
10 return files;
11}