博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
OS Review Chapter 11:File System Interface
阅读量:3948 次
发布时间:2019-05-24

本文共 1216 字,大约阅读时间需要 4 分钟。

Chapter 11 : File System Interface

文章目录

File Concept

Contiguous logical address space

Types:

  • Data :numeric character binary …
  • Program

File Structure

File Attributes(属性)

Name Type Location Size Protection Time, date, and user identification

Information about files are kept in the directory structure, which is maintained(维护) on the disk.

File Operations

Open(Fi) –search the directory structure on disk for entry Fi, and move the content of entry to memory

Close (Fi) –move the content of entry Fi in memory to directory structure on disk

Access Methods

  • Sequential Access
  • Direct Access

Directory Structure

disks are split into one or more partitions,each partition contains information about files within it.

The information is kept in entries in a device directory or volume table of contents

Organize the Directory

Efficiency Naming Grouping

  • Single-Level Directory

  • Two-Level Directory

  • Tree-Structured Directories

  • Acyclic-Graph Directories 非循环图

    How do we guarantee no cycles?

    Allow only links to file not subdirectories.

    Garbage collection.

    Every time a new link is added use a cycle detection algorithm to determine whether it is OK.

File System Mounting 挂载

A file system must be mounted before it can be accessed.

转载地址:http://ymgwi.baihongyu.com/

你可能感兴趣的文章
ADO连接Oracle
查看>>
遍历Windows系统中所有进程的名字(*.exe)
查看>>
进程看门狗
查看>>
线程看门狗
查看>>
调试代码的宏定义
查看>>
创建、重命名文件
查看>>
文件大小保护
查看>>
删除指定目录下所有文件及目录
查看>>
XDR-从文件空间解码整数
查看>>
XDR-.x文件的简单使用
查看>>
XDR-枚举的试用
查看>>
使用CppSQLite3访问SQLite数据库
查看>>
第一个boost程序---timer的使用
查看>>
使用boost asio库实现字节数可控的CS通信
查看>>
linux下串口编程
查看>>
boot asio 非阻塞同步编程---非阻塞的accept和receive。
查看>>
利用ADOX、ADO操纵MDB文件(ACCESS)
查看>>
使用ADO操作MDB,关注数据类型
查看>>
使用windows自带Zip命令压缩文件
查看>>
windows获得文件大小
查看>>