Skip to content

Simple File System

Valerio Coretti edited this page Mar 15, 2018 · 1 revision

PREMISE

The project aims to create a simple file-system implemented through the use of a binary file that replaces the disk. For the control of correct functioning, tests were carried out for each component and a simple Shell has been created that allows a user-friendly use through a simple interface enriched by the use of a custom color. format.

PROJECT

The file-system is a component of the operating system that provides the mechanisms of access and storage of data, allowing a uniform logical view of all information stored permanently on the device. It also allows to abstract from the physical characteristics of the supports of storage. In this simple implementation is used a tree structure:

  1. As the first element you have a root directory that contains files and / or other directories.
  2. Each directory can in turn contain other files and / or other directories.

The underlying disk is simulated by a binary file divided into blocks of fixed size managed by a bitmap, that is a byte vector in which each bit indicates if the corresponding block is already allocated (1) or not (0). The division of the project, however, allows modularity to the functions that they can easily readapted for use on a real disk.

Clone this wiki locally