๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
โญ Group_Study/Operating System

[9์ฃผ์ฐจ] File System Overview

by ํฌ์ŠคํŠธ์‰์ดํฌ 2023. 1. 27.

File System Overview

File System

โœ” ์‚ฌ์šฉ์ž๋“ค์ด ์‚ฌ์šฉํ•˜๋Š” ํŒŒ์ผ๋“ค์„ ๊ด€๋ฆฌํ•˜๋Š” ์šด์˜์ฒด์ œ์˜ ํ•œ ๋ถ€๋ถ„

โœ” File system์˜ ๊ตฌ์„ฑ

  1. Files
    • ์—ฐ๊ด€๋œ ์ •๋ณด์˜ ์ง‘ํ•ฉ
  2. Directory Structure
    • ์‹œ์Šคํ…œ ๋‚ด ํŒŒ์ผ๋“ค์˜ ์ •๋ณด๋ฅผ ๊ตฌ์„ฑ ๋ฐ ์ œ๊ณต
  3. 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

โœ” 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

โœ” ํ˜„์žฌ file system์— ๋‹ค๋ฅธ file system์— ๋ถ™์ด๋Š” ๊ฒƒ

โœ” Mount point

๋Œ“๊ธ€