Login Required

This note requires login to view the full content (75 lines total). Showing first 20 lines as preview. Please login to view the full content.

Login to unlock

Chapter 10: File System Interface

Created: 2025-12-16
Updated: 2025-12-16
  • file: a logical storage unit
  • platter/track/sector: physical storage unit in disk
  • file attributes(metadata): name, type, location, size, protection, time/date...
  • file operations: create, write, read, reposition, delete, truncate...
  • Open-File Table
    • per-process open-file table
      • pointer to system-wide open-file table
      • program-wise info: file pointer, access mode (read, write, append)...
    • system-wide open-file table
      • file-wise info: disk location, file open count...
  • file types (.exe .txt ...): Hint for OS to operate it reasonably

Access Methods

  • Sequential Access: read/write data in a linear way
    • read/write next record
    • reset: back to the beginning of the file
    • rewind: go back n records

Login to unlock full content

Login Now