Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
10EC65
Unit 6
File Systems
Reference Book:
Operating Systems - A Concept based Approach
D. M. Dhamdhare, TMH, 3rd Edition, 2010
Shrishail Bhat, AITM Bhatkal
Introduction
Computer users store programs and data in files so that they can be
used conveniently and preserved across computing sessions
The resources used for storing and accessing files are I/O devices
Operating systems organize file management into two components:
File System
Input-Output Control System (IOCS)
A file system provides facilities for creating and manipulating files,
for ensuring reliability of files when faults such as power outages or
I/O device malfunctions occur, and for specifying how files are to
be shared among users
The IOCS provides access to data stored on I/O devices and good
performance of I/O devices
Shrishail Bhat, AITM Bhatkal
Overview of File Processing
A file system provides several file types. Each file type provides
its own abstract view of data in a file we call it a logical view
of data.
The IOCS organizes a files data on an I/O device in accordance
with its file type. It is the physical view of the files data.
The mapping between the logical view of the files data and its
physical view is performed by the IOCS
Two layers:
Access method layer provides efficient file processing
Physical IOCS layer provides high device throughput
Operating
Operating Systems, by Dhananjay
Systems, Dhamdhere
by Dhananjay Dhamdhere 14.19 19
Shrishail Bhat, AITM Bhatkal
Fundamental File Organizations and Access Methods
Other variations:
Two-level FMT organization: compact, but access to data blocks is
slower
Hybrid FMT organization: small files of n or fewer data blocks
continue to be accessible efficiently
Steps in file processing involving the file system and the IOCS
1. The process executes the call open (alpha, read,
<file_attributes>). The call returns with internal_idalpha.
2. The file system creates a new FCB in the open files table fcbalpha.
The file system now makes a call iocs-open with
internal_idalpha and the address of the directory entry of alpha as
parameters.
3. The IOCS accesses the directory entry of alpha, and copies the file
size and address of the FMT, or the FMT itself, from the directory
entry into fcbalpha.