[prev] 29 [next]

inodes (cont)

To access a file by name, the following needs to happen:
  • open directory and scan for name
  • if not found, "No such file or directory"
  • if found as (name,ino), access inode table inodes[ino]
  • collect file metadata and ...
    • check file access permissions given current user/group
      • if don't have required access, "Permission denied"
    • collect information about file's location and size
    • update access timestamp
  • use physical location to access device and manipulate file data