[prev] 28 [next]

inodes

Metadata for file system objects is stored in inodes, which hold
  • physical location on storage device of file data
  • file type (regular file, directory, ...), file size (bytes/blocks)
  • ownership, access permissions, timestamps (create/access/update)
Each file system volume has a table of inodes in a known location

Note: an inode does not contain the name of the file

Access to a file by name requires a directory

  • where a directory is effectively a list of (name,inode) pairs

Note: You can use the ls -i command to see the inode index for each file
Note: very small files can potentially be stored in an inode (inlining)