File System Implementation Flashcards
What are the main parts of a file system implementation?
1) File control block (FCB), 2) Directory structure, 3) Allocation methods.
What is a file control block (FCB)?
A data structure that contains metadata about a file, such as permissions and location on disk.
What are three common file allocation methods?
1) Contiguous allocation, 2) Linked allocation, 3) Indexed allocation.
What is contiguous allocation?
Storing a file in a single, continuous block of memory — simple but inflexible.
What is linked allocation?
Each file block contains a pointer to the next — flexible but slow for direct access.
What is indexed allocation?
A special block holds pointers to all file blocks — allows efficient direct access.