Spring 2021
Instructors Roz Cyrus and Jerry Cain
PDF
Thanks to Chris Gregg for providing this lovely overview motivating the study of this particular filesystem!
Just like RAM, hard drives (or, more likely these days, solid state drives) provide us with a contiguous stretch of memory where we can store information.
Thanks to Ryan Eberhardt for the illustrations and the text used in these slides.
class Drive {
public:
size_t getNumSectors() const;
void readSector(size_t num, unsigned char data[]) const;
void writeSector(size_t num, const unsigned char data[]);
};
poohbear@myth53:/usr/class/cs110$ ls
ARCHIVE.README emails include lib private_data samples tools
cgi-bin final-tests lecture-examples local repos staff WWW
poohbear@myth53:/usr/class/cs110$ ls -1
ARCHIVE.README
cgi-bin
emails
final-tests
include
lecture-examples
lib
local
private_data
repos
samples
staff
tools
WWW
poohbear@myth53:/usr/class/cs110$
poohbear@myth53:/usr/class/cs110$ ls -i
802561586 ARCHIVE.README 802961215 final-tests 802423769 lib 802423057 repos 802467899 tools
802468377 cgi-bin 802423705 include 802423781 local 802454315 samples 802422787 WWW
802709431 emails 802422993 lecture-examples 802468395 private_data 802454357 staff
poohbear@myth53:/usr/class/cs110$ ls -i
802561586 ARCHIVE.README 802961215 final-tests 802423769 lib 802423057 repos 802467899 tools
802468377 cgi-bin 802423705 include 802423781 local 802454315 samples 802422787 WWW
802709431 emails 802422993 lecture-examples 802468395 private_data 802454357 staff