From a user perspective, the main purpose of introducing a file system is to enable file access by name; users can access files as long as they know the file name, without having to consider where the file is stored on the disk.
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
From a user's perspective, the main purpose of introducing a file system is to achieve name-based access to files.
The file system is the method and data structure used by the operating system to identify files on storage devices (commonly disks, but also solid-state drives based on NAND Flash) or partitions; that is, organized on storage devices file method.
The software organization responsible for managing and storing file information in the operating system is called the file management system, or file system for short.
From a system perspective, the file system is a system that organizes and allocates the space of file storage devices, is responsible for file storage, and protects and retrieves stored files. Specifically, it is responsible for creating files for users, modifying files, accessing files, transferring files, deleting files that users do not need from the disk, etc.
From the user's perspective, the file system implements "access by name". As long as you know the file name, you can access the file without having to consider what the file is stored on the disk. place.
The most important thing in a file system is how it appears in the eyes of the user, that is, what the file consists of, how to name the file, how to protect the file, and what operations can be performed on the file. As for Details such as how many sectors there are in a logical disk block are not of concern to users.
When a process creates a file, it names the file. When the process terminates, the file still exists and other processes can access it through this file name.
The functions of the file system include:
Manage and schedule the storage space of files, provide the logical structure of files, Physical structure and storage method; realize the mapping of files from identification to actual addresses, realize file control operations and access operations, realize the sharing of file information and provide reliable file confidentiality and protection measures, and provide file security measures.
The logical structure of a file is to organize the file structure according to the logical relationship of the file content. The logical structure of files can be divided into streaming files and recorded files.
Streaming file: The data in the file is a stream of characters without structure.
Record file: It is composed of several logical records, and each record is composed of the same data items. The length of the data items can be determined or uncertain.
For more related knowledge, please visit the FAQ column!
The above is the detailed content of From a user perspective, what is the main purpose of introducing a file system?. For more information, please follow other related articles on the PHP Chinese website!