Skip to content

3. Filesystem Design

Zachary edited this page Jan 6, 2017 · 3 revisions

Metadada objects and Data objects

  • Metadata object
    • Maintain hierarchy of filesystem
      • Directory object: List head of metadata objects under the directory
      • File object: Represent the leaf object in the hierarchy of filesystem
  • Data object
    • The instances of real context of File

Key-coding scheme

  • Metadata object: (inode# of parent, name) -> (pid, name)
  • Data object: (inode# of file, chuck num) -> (fid, cid)
alt text

File and Directory operations

  • Locate an object
    • A series of searching of operating system
alt text
  • Create a directory or a file
    • Insert an object
alt text
  • Enumeration
    • the sub-list of metadata object enumerated
alt text
  • How superblock list works
    • Fast initializing and not wearing out any spatial block
alt text

Clone this wiki locally