OS Review Chapter 11:File System Interface

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值