Disk System
파일은 디스크에 저장된다.

Disk Pack
Disk Drive

Disk Address


Data Access in Disk System


사용자들이 사용하는 파일들을 관리하는 운영체제의 한 부분
파일 시스템의 구성
Access Methods

File Concept

보조 기억 장치에 저장된 연관된 정보들의 집합
내용에 따른 분류
형태에 따른 분류
File Concept

File attributes(속성)
File operations
File Access Methods
sequential access (순차 접근)
Directed access (직접 접근)
Indexed access
File System Organization

Partitions
Directory(folder)
Mounting

Flat Directory Structure

2-Level Directory Structure


Hierarchical Directory Structure


Acyclic Graph Directory Structure

Acyclic : 원형이 될 수 없는, 루프가 만들어질 수 없는

Link

Acyclic Graph Directory Structure


General Graph Directory Structure


File Protection
File Protection Mechanism
파일 보호 기법은 system size 및 응용 분야에 따라 다를 수 있다.
password 기법
Access Matrix 기법

Example

파일에 관한 도메인의 권한들이 적혀지게 된다.
Global Table


Access List

Capability List

Lock-key Mechanism
Comparison of Implementations
Global table
Access list
Capability list


Allocation of File Data in Disk

Contiguous Allocation


단점
장점
Linked Allocation


장점
단점
Indexed Allocation


UNIX 파일시스템의 구조


하나의 논리적인 디스크인 partition에 file system을 설치해놓은 모습이다.
Unix 파일 시스템은 indexed allocation을 변형해서 사용하고 있다.
FAT File System

linked allocation을 활용한 것이다.
파일에 대한 메타데이터 중 위치만 FAT이라는 곳에 저장하고 있다.
장점
Free Space Management



Directory Implementation



VFS and NFS

Page Cache and Buffer Cache



