search
HomeCommon ProblemWhat is the key to solving the problem of name-based access in the operating system?

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools