Prev | Current Page 332 | Next

Carl Reynolds and Paul Tymann

"Schaum's Outline of Principles of Computer Science"

Another advantage of indexed allocation is
that the locations of all the blocks in the file can be determined from the directory entry, so random access
is possible. A disadvantage is that any corruption of the directory entry can make it impossible to recover the
information in the file.
In UNIX a file directory entry is called an i-node or inode, for index-node. Among other things, the inode
contains pointers to the file blocks, permissions, ownership information, and times of last access and modification.
Since directories are just files in UNIX, each directory has an inode, too. When a program opens a file like
/usr/work.txt, the system locates the inode for the root directory (almost always set to inode 2), and then reads
the blocks of the root directory looking for something called ???usr.??? When it finds ???usr,??? it will also find the inode
for ???usr.??? Then it can read the file that is the directory ???usr??? and look for something called ???work.txt.??? When it
finds ???work.txt,??? it will also find the inode for ???work.txt.??? From the inode of ???work.txt??? the system will find
pointers to all the blocks of the file.
Journaling File Systems
Some newer file systems incorporate logging or journaling of file system transactions.


Pages:
320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
ubezpieczenia nieruchomoƛci szczecin mapa komunikator pieniny noclegi sandomierz