File System implementation
File System implementation
• The operating system manages the free space in the hard disk.
• This is known as free space management in operating systems.
• The OS maintains a free space list to keep track of the free disk
space.
• The free space list consists of all free disk blocks that are not
allocated to any file or directory.
• For saving a file in the disk, the operating system searches the free
space list for the required disk space and then allocates that space
to the file.
• When a file is deleted, the space allocated to it is added to the free
space list.
Methods of Free Space Management in OS