90 likes | 223 Views
But first lab 4!. You will implement part of a FAT filesystem MSDOS *msdos_open(const char *devname) void msdos_close(MSDOS *dosp) int msdos_ls(MSDOS *dosp); int msdos_cd(MSDOS *dosp, const char *name); int msdos_rm(MSDOS *dosp, const char *name);
E N D
But first lab 4! • You will implement part of a FAT filesystem • MSDOS *msdos_open(const char *devname) • void msdos_close(MSDOS *dosp) • int msdos_ls(MSDOS *dosp); • int msdos_cd(MSDOS *dosp, const char *name); • int msdos_rm(MSDOS *dosp, const char *name); • int msdos_save(MSDOS *dosp, const char *name); Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
FAT filesystem structure Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
Boot sector Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
FAT tables Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
First FAT entry • First entry is reserved Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
Other FAT entries Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
FAT12 packing Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
Directory Entry Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014
Entry Attributes Computing Systems http://www.cs.caltech.edu/courses/cs134/a/ September 6, 2014