본문 바로가기
코딩이야기/운영체제

파일 시스템(File system) - 2. big picture

by GiraffeB 2016. 4. 11.

파일 시스템(File system) - 2. big picture


1. Views on Files


1) User

file name + bytes offset


2) Kernel

ino + logical block#


3) Device Driver

physical Block#


4) Device

drivce#

+ cylinder# + head# + sector#



#차이가 발생하는 이유는?

UNIX OS에서는 file을 bytes seqeunce로 정의했지만, 실제로 저장하는 위치는 block device이므로 block단위 io에 맞게 매핑이 필요함.


#Buffer Cache

최근에 접근한 File의 Data Block내용을 Main Memory에 저장해 두는 공간

디스크로부터 한번 읽어온 파일의 내용에 다시 접근할때, 빠르게 읽어 올 수 있다.




#User space

file io

---

#Kernel space


VFS

individual Files Systems(EXT3, EXT4, JFFS2...)

Buffer Cache

IO scheduler

Driver

---

#Storage Media