Home | Projects | Notes > Operating Systems > File Management

File Management

 

Overview

 

Common File Structures

In general, an OS supports multiple file systems. The followings are common file structures that OSs support in general.

 

File System Support

 

Elements of File Management

 

elements-of-file-management

 

 

File System Architecture (Lowest to Highest Level)

 

File Management

 

Secondary Storage Management

There are 2 Basic Strategies for File Storage Allocation.

1. Variable sized, contiguous portions (Older way)

2. Block oriented

 

UNIX/LINUX Inode Strategy

Direct Block Pointers

Indirect Block Pointers

 

structure-of-freebsd-inode-and-file

 

[!] Note: There is a limit to how big of a size a file can be! The size of a file annot be infinite!

 

Exercise

Problem

Solution

 

How is Free Space Managed?

Keep in mind that keeping track of the available blocks is a big part of file management.

 

 

References

Stallings, W. (2018). Operating Systems: Internals and Design Principles (9th ed.). Pearson Education, Inc.