date: 2024-05-11
title: 09-File System Interface
status: DONE
author:
- AllenYGY
tags:
- OS
- FileSystem
- NOTE
created: 2024-05-11T14:08
updated: 2024-06-11T01:14
publish: True
File System Interface
Except file creation and deletion, all other operations need to open the file first and then close the file after the operation
Shared lock
Exclusive lock
The OS uses the extension to indicate the type of the file.
n = an index relative to the beginning of the file
A directory structure (per file system) is used to organize the files
Both the directory structure and the files reside on disk
OSes
, other file systems, or be raw.The directory is organized logically to obtain
Tree structures is a tree of arbitrary height, mostly common directory structure
OSes
simply do not allow shared directories or linksAllow only links to file not subdirectories
Every time a new link is added, use a cycle detection algorithm to determine whether it is OK. Very expensive.
When information is stored in a computer system, we want to keep it safe from physical damage (the issue of reliability) and improper access (the issue of protection)
File owner/creator should be able to control:
Types of access
Other operations, such as renaming, copying, and editing the file, are high levels, done through read, write access.
Three classes of users on Unix / Linux RWX creator