File-System Interface

References:

  1. Abraham Silberschatz, Greg Gagne, and Peter Baer Galvin, "Operating System Concepts, Eighth Edition ", Chapter 10

10.1 File Concept

10.1.1 File Attributes

10.1.2 File Operations

10.1.3 File Types

10.1.4 File Structure

10.1.5 Internal File Structure

10.2 Access Methods

10.2.1 Sequential Access

10.2.2 Direct Access

10.2.3 Other Access Methods

10.3 Directory Structure

10.3.1 Storage Structure

10.3.2 Directory Overview

10.3.3. Single-Level Directory

Figure 10.8

10.3.4 Two-Level Directory


Figure 10.9

10.3.5 Tree-Structured Directories


Figure 10.10

10.3.6 Acyclic-Graph Directories


Figure 10.11

10.3.7 General Graph Directory


Figure 10.12

10.4 File-System Mounting


Figure 10.13


Figure 10.14

10.5 File Sharing

10.5.1 Multiple Users

10.5.2 Remote File Systems

10.5.2.1 The Client-Server Model

10.5.2.2 Distributed Information Systems

10.5.2.3 Failure Modes

10.5.3 Consistency Semantics

10.5.3.1 UNIX Semantics

10.5.3.2 Session Semantics

10.5.3.3 Immutable-Shared-Files Semantics

10.6 Protection

10.6.1 Types of Access

10.6.2 Access Control

bit

Files Directories
R Read ( view ) file contents. Read directory contents. Required to get a listing of the directory.
W Write ( change ) file contents. Change directory contents. Required to create or delete files.
X Execute file contents as a program. Access detailed directory information. Required to get a long listing, or to access any specific file in the directory. Note that if a user has X but not R permissions on a directory, they can still access specific files, but only if they already know the name of the file they are trying to access.

 


Figure 10.15

 

10.6.3 Other Protection Approaches and Issues

10.7 Summary