File System Overview
File System
โ ์ฌ์ฉ์๋ค์ด ์ฌ์ฉํ๋ ํ์ผ๋ค์ ๊ด๋ฆฌํ๋ ์ด์์ฒด์ ์ ํ ๋ถ๋ถ
โ File system์ ๊ตฌ์ฑ
- Files
- ์ฐ๊ด๋ ์ ๋ณด์ ์งํฉ
- Directory Structure
- ์์คํ ๋ด ํ์ผ๋ค์ ์ ๋ณด๋ฅผ ๊ตฌ์ฑ ๋ฐ ์ ๊ณต
- Partitions
- Directory๋ค์ ์งํฉ์ ๋ ผ๋ฆฌ์ /๋ฌผ๋ฆฌ์ ์ผ๋ก ๊ตฌ๋ถ
File Concept
โ ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น์ ์ ์ฅ๋ ์ฐ๊ด๋ ์ ๋ณด๋ค์ ์งํฉ
- ๋ณด์กฐ ๊ธฐ์ต ์ฅ์น ํ ๋น์ ์ต์ ๋จ์
- Sequence of bytes (๋ฌผ๋ฆฌ์ ์ ์)
File์ ๋ถ๋ฅ
โ ๋ด์ฉ์ ๋ฐ๋ฅธ ๋ถ๋ฅ
- Program file
- Source program, object program, executable files
- Data file
โ ํํ์ ๋ฐ๋ฅธ ๋ถ๋ฅ
- Text(ascii) file
- Binary file
File attributes(์์ฑ)
โ Name
โ Identifier
โ Type
โ Location
โ Size
โ Protection
โ User identification(owner)
โ Time, Date
File operations
โ Create
โ Write
โ Read
โ Reposition
โ Delete
โ Etc.
โ OS๋ file operation๋ค์ ๋ํ system call์ ์ ๊ณตํด์ผ ํ๋ค
File Access Methods
โ Sequential Access (์์ฐจ ์ ๊ทผ)
- File์ record(or bytes)๋จ์๋ก ์์๋๋ก ์ ๊ทผ
โ Directed Access (์ง์ ์ ๊ทผ)
- ์ํ๋ Block์ ์ง์ ๊ฒ๊ทผ
โ Indexed Access
- Index๋ฅผ ์ฐธ์กฐํ์ฌ ์ํ๋ block์ ์ฐพ์ ํ ๋ฐ์ดํฐ์ ์ ๊ทผ
File System Organization
![](https://blog.kakaocdn.net/dn/cSCzX3/btrW6qgllmT/d9GtZQf9Wrl2kK1AfzAPzk/img.png)
โ Paritions(minidisks, volumes)
- Virtual disk
โ Directory
- File ๋ค์ ๋ถ๋ฅ, ๋ณด๊ดํ๊ธฐ ์ํ ๊ฐ๋
- Operations on directory
- Search file
- Create file
- Delete file
- List a directory
- Rename file
- Traverse the file system
Mounting
![](https://blog.kakaocdn.net/dn/xvqYy/btrWUGL3n4y/yzoKD1SpAmIkkFb4ROB8P0/img.png)
โ ํ์ฌ file system์ ๋ค๋ฅธ file system์ ๋ถ์ด๋ ๊ฒ
โ Mount point
'โญ Group_Study > Operating System' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[9์ฃผ์ฐจ] File Protection (0) | 2023.01.29 |
---|---|
[9์ฃผ์ฐจ] Directory Structure (0) | 2023.01.28 |
[9์ฃผ์ฐจ] Disk System (0) | 2023.01.26 |
[8์ฃผ์ฐจ] Virtual Memory Management: Other considerations (0) | 2023.01.25 |
[8์ฃผ์ฐจ] Virtual Memory Management: Replacement Strategies for Variable Alloc. (0) | 2023.01.24 |
๋๊ธ