Home > Common Problem > What is the key to solving the problem of name-based access in the operating system?

What is the key to solving the problem of name-based access in the operating system?

WBOY
Release: 2022-08-17 11:17:40
Original
3230 people have browsed it

The key to the operating system's implementation of access by name is to convert file names and specific physical addresses; to achieve conversion between logical files and physical files, that is, access files on external storage by name. Access realizes file sharing and confidentiality, and different users can share other users' files under the control of the system.

What is the key to solving the problem of name-based access in the operating system?

The operating environment of this tutorial: Windows 10 system, DELL G3 computer.

The key to the operating system's implementation of name-based access is to solve the problem

The key to the operating system's implementation of name-based access is to solve the conversion of the file name and the specific physical address of the file

Why does the file system provide users with the "access by name" function?

To access information from the access medium, you must not only activate the corresponding storage device, but also remember the storage space when storing files on the storage medium or reading files from the storage medium. usage, file storage location, etc. If the file system provides users with access functions by name, then users do not need to worry about these tasks. Obviously, after the file system implements the access function by name, it can not only ensure the safety and reliability of files but also make it convenient for users.

(1) Realize the conversion from logical files to physical files, that is, "access by name" files on external storage

(2) Allocate storage space for files.

(3) Create a file directory. The file directory is an effective means to achieve name-based access and is also a mechanism to ensure file security.

(4) Provide appropriate access methods to adapt to various applications.

(5) Realize file sharing, protection and confidentiality. Different users can share other users' files under system control.

(6) Provides a set of file operations. Complete operations such as creating, deleting, renaming, copying and moving files.

In order to enable users to access files by name:

  • The system must first use the file name provided by the user

  • Query the file directory

  • Find the file control block FCB

  • (for UNIX The system needs to find out the index node of the file,

  • , and then find out the file's location based on the physical address of the file recorded in the found FCB and the physical organization of the file. The disk block number

  • then calculates the physical location of the file on the disk

  • Finally start the disk driver and Reading files into memory

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What is the key to solving the problem of name-based access in the operating system?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template