. [PintOS, Project4] File System Overview
본문 바로가기
Pintos Project/이론 공부

[PintOS, Project4] File System Overview

by 불냥이_ 2021. 3. 2.

 

File System

  사용자들이 사용하는 파일들을 관리하는 운영체제의 한 부분

 

 

File System의 구성

  - Files

     ㆍ연관된 정보의 집합

  - Directory structure

     ㆍ시스템 내 파일들의 정보를 구성 및 제공

  - Partitions

     ㆍDirectory들의 집합을 논리적/물리적으로 구분

 

 

 

File Concept

  - 보조 기억 장치에 저장된 연관된 정보들의 집합

     ㆍ보조 기억 장치 할당의 최소 단위

     ㆍSequence of bytes (물리적 정의)

 

  - 내용에 따른 분류

     ㆍ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) 단위로 순서대로 접근  (예 : fgetc())

  - Directed access (직접 접근)

     ㆍ원하는 Block을 직접 접근  (예 : lseek(), seek())

  - Indexed access

     ㆍIndex를 참조하여, 원하는 block을 찾은 후, 데이터 접근

 

 

 

 

File System Organization

  - Partitions (minidisks, volumes)

     ㆍVirtual disk

 

  - Directory

     ㆍFile 들을 분류, 보관하기 위한 개녕

     ㆍOperations on directory

         -> Search for a file

         -> Create a file

         -> Delete a file

         -> List a directory

         -> Rename a file

         -> Traverse the file system

 

 

 

File System Organization

  - Mounting

     ㆍ현재 FS에 다른 FS를 붙이는 것

그림 1. Mounting

 컴퓨터에 외장 하드 등을 꽂거나, 휴대폰에 SD카드를 꽂는 것도 Mounting이다.

 

 

 

댓글