Spring 2021
Instructors Roz Cyrus and Jerry Cain
PDF
/usr/class/cs110/WWW/index.html
—to seemingly magic numbers that incidentally identify where the corresponding inodes sit in the inode table.assign1
solution resides in a file named /usr/class/cs110/staff/master_repos/assign1/imdb.cc
. At 51 characters, the name wouldn't fit in an inode./usr/class/cs110/example.txt
. First, we find the inode for the file /
(which by design is always associated with inumber 1). We search inode 1's payload for the token usr
and its companion inumber. Let's say it's at inode 5. Then, we get inode 5's contents and search for the token class
in the same way. From there, we look up the token cs110
and then example.txt
.