File system

A File system (or filesystem) is a way of storing all data on a data storage device. The data is usually organized in computer files in directories. Below the f…

File system

A File system (or filesystem) is a way of storing all data on a data storage device. The data is usually organized in computer files in directories. Below the file system, there is often a physical device where the files are stored. This might be a HDD, SSD, USB flash drive, Compact Disc, DVD, etc. The file system might also talk to a remote server over a network where the file is stored. The file system might also only use RAM to store the files.

The underlying storage mechanism typically has no concept of a file. A hard disk knows of disk blocks, which are numbered in a certain way. These disk blocks contain binary data (usually: large numbers).

The file system does the translation between the large numbers, and the view the users see, that is that of files, organized in a certain way.

More recently, concepts from databases have been used to develop file systems. That way, there are two different kinds of data:

  • Data that holds the files
  • Data that is used to describe what state the files are in. This is called metadata.

It then becomes possible to always keep the file system in a consistent state. With databases, this is known as ACID.[1] That way, an operation on a file is either done, or it is not done. There are, however, no states in between. The file being written to the filesystem is no longer visible. This is usually done using transactions. But with filesystems, it is called journaling.

References

  1. ↑ "What are the ACID properties? | Data Basecamp". 2022-07-02. Retrieved 2022-07-07.


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.