+14087965644Silicon Valley, CA, US

HomeBlogBlogFile System Structure

File System Structure

File System Structure

  • A file is a collection of related information.
  • The file system resides in secondary storage and provides efficient and convenient access to the disk by allowing data to be stored, retrieved, and located.

File system structure/layered file system:

 

  • Application Programs:  

Programs developed by the user Or file which is written by the user are known as Application programs.

Example: We have written a C program to print a value. That C file is an application program.

  • Logical File System:

The Filename acts as an input to the logical file system. This logical file system checks whether the file is present in the directory or not. If it is there, then the logical file system finds the file’s location and the logical block number of the file. This logical block number acts as an input for the file organization module.

  • File Organisation Module:

The file organization module accepts the logical block number of the file and finds the file’s physical block number (i.e., the exact location of the file in the hard disk).

  • Basic File System:

The physical block number of the file acts as an input to this Basic file system layer. After accepting the input from the File organization module layer, this Basic File System issues a command to I/O control with a block number.

Example commands:

  1. read 123

Read the content in block 123.

  1. print 123

Print the content in block 123.

  • I/O Control:

I/O control accepts the command from the Basic file system. I/O control contains the device driver’s files. So, as per the command from the Basic file system, device drivers can interact with the devices.

  • Devices:

As per the device drivers, the corresponding device action takes place and so that the corresponding action is done.