Docsity

File Management - Computer Science and Engineering - Lecture Slides, Slides of Computer Science

Partial preview of the text

Download File Management - Computer Science and Engineering - Lecture Slides and more Slides Computer Science in PDF only on Docsity!

File Management

in Operating System

Outline of the lecture

  • File Management• File Operations• File Terminologies• File Management System• Requirements• Elements of file System• File Organization

File System Properties

  • Long-term existence.• Sharable between processes.• Structure.

File Operations

  • Create• Delete• Open• Close• Read• Write

Terms Used with Files

  • File
    • Collection of similar records.– Treated as a single entity.– Have file names.– May restrict access.
      • Database
        • Collection of related data.– Relationships exist among elements.

Typical Operations

  • Retrieve_All• Retrieve_One• Retrieve_Next• Retrieve_Previous• Insert_One• Delete_One• Update_One• Retrieve_Few

Objectives for a

File Management System

  • Meet the data management needs and

requirements of the user.

  • Guarantee that the data in the file are

valid.

  • Optimize performance.• Provide I/O support for a variety of

storage device types.

Objectives for a

File Management System • Minimize or eliminate the potential for

lost or destroyed data.

  • Provide a standardized set of I/O

interface routines.

  • Provide I/O support for multiple users.

Minimal Set of Requirements

  • Each user should be able to move data

between files.

  • Each user should be able to back up and

recover the user’s files in case ofdamage.

  • Each user should be able to access the

user’s files by using symbolic names.

Basic File System

  • Physical I/O.• Deals with exchanging blocks of data.• Concerned with the placement of blocks.• Concerned with buffering blocks in main

memory.

Basic I/O Supervisor

  • Responsible for file I/O initiation and

termination.

  • Control structures are maintained.• Concerned with selection of the device

on which file I/O is to be performed.

  • Concerned with scheduling access to

optimize performance.

  • Part of the operating system.

Access Method

  • Reflect different file structures.• Different ways to access and process

data.