Chapter 12 File Management Systems

Slides:



Advertisements
Similar presentations
Computer-System Structures Er.Harsimran Singh
Advertisements

Interactive lesson about operating system
Operating System Structures
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Chapter 10: File-System Interface
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
1 File Management (a). 2 File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection.
Chapter 11: File System Implementation
File Management Systems
Chapter Goals Describe the components and functions of a file management system Compare the logical and physical organization of files and directories.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
Windows XP File System Management Group D. 3 Layers of Drivers Filter Drivers Filter Drivers –Virus protection, compression, encryption File System Drivers.
File Management Systems
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
1 Operating Systems Chapter 7-File-System File Concept Access Methods Directory Structure Protection File-System Structure Allocation Methods Free-Space.
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
1 File Management in Representative Operating Systems.
Chapter 11 Operating Systems
10.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles Chapter 10: File-System Objectives To discuss file-system design tradeoffs, including.
Operating Systems File systems
1 Course Outline Processes & Threads CPU Scheduling Synchronization & Deadlock Memory Management File Systems & I/O Networks, Protection and Security.
File Management Chapter 12.
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 4 File Systems Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
ITEC 502 컴퓨터 시스템 및 실습 Chapter 10-1: File Systems Mi-Jung Choi DPNM Lab. Dept. of CSE, POSTECH.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
Chapter pages1 File Management Chapter 12.
2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 2: Computer-System Structures Computer System Operation I/O Structure.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
1 File Management Chapter File Management n File management system consists of system utility programs that run as privileged applications n Concerned.
File Storage Organization The majority of space on a device is reserved for the storage of files. When files are created and modified physical blocks are.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 12: File System Implementation File System Structure File System Implementation.
Module 4.0: File Systems File is a contiguous logical address space.
Some basic concepts and information on file systems Portions taken and modified from books by ANDREW S. TANENBAUM.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
Silberschatz, Galvin and Gagne ©2009 Edited by Khoury, 2015 Operating System Concepts – 9 th Edition, Chapter 11: File-System Interface.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
操作系统原理 OPERATING SYSTEMS Chapter 4 File Systems 文件系统.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Chapter 3: Windows7 Part 3.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
File-System Management
Chapter 2: Computer-System Structures(Hardware)
Chapter 2: Computer-System Structures
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Chapter 11: File System Implementation
CIS 212 Microcomputer Architecture Day 26
File Management.
Chapter 3: Windows7 Part 3.
Chapter 2: System Structures
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Computer-System Architecture
Directory Structure A collection of nodes containing information about all files Directory Files F 1 F 2 F 3 F 4 F n Both the directory structure and the.
Chapter 10: File-System Interface
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Modern PC operating systems
File System Implementation
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Chapter 2: Operating-System Structures
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Chapter 12 File Management Systems

Outline Functions and components Storage allocation File manipulation Access controls Migration, backup, recovery

File Management Systems Logical and Physical Storage Views File Content and Type

File Management Systems A File Management System (FMS) is implement in layers: Command layer or application program File control Storage I/O control Storage devices

File Management Systems Storage devices – interact with the bus and with operating system device drivers to transfer data between storage devices and memory. Storage I/O control – accesses storage locations and manages data movement between storage devices and memory.

File Management Systems File Control – provides a set of service functions for manipulating files and directories. Command layer or application program – users perform common file management functions such as copying, moving and renaming.

File Management Systems Logical and Physical Storage Views Logical Storage Views – viewed by users are a collection of files organized within directories and storage volumes. Physical Storage Views – a collection of physical storage locations organized as a linear address space.

File Management Systems

Records and Fields

File Management Systems File Content and Type A file can store many different data types including text, numbers, complex data structures, and executable instructions. Modern file management systems provide a framework to support additional file types.

File Management Systems File Content and Type File type normally is declared when a file is created. In the UNIX file management system, the file type is stored within the directory. In the Windows file management system, the file type is declared through the extension.

File Management Systems

Directory Content and Structure Hierarchical Directory Structure Graph Directory Structure

Directory Content and Structure Hierarchical Directory Structure A directory contains information about files and other directories. Typical directory contents include: Name Size Time stamp File Type Ownership Location Access controls

Directory Content and Structure Typical file ownership permissions are: List Read Modify Change

Directory Content and Structure Time stamps include: When the file was created When the file most recently was read When the file most recently was written When the file last was backed up

Directory Content and Structure

Directory Content and Structure Hierarchical Directory Structure Directories can contain other directories. Directories can not have more than one parent. Sometimes called a tree structure.

Directory Content and Structure

Directory Content and Structure Example: Traversing directories in the Windows command shell

Directory Content and Structure Graph Directory Structure Files and subdirectories can be contained within multiple directories. Directory links can form a cycle.

Directory Content and Structure

Paths Where do operating systems look for executable files? In the current directory In the path If directories are missing or in the wrong order, OS can’t find the right files Example: Windows PATH

Paths and Environment Variables Some programs use environment variables to store path information If directories are missing or in the wrong order, programs can’t find the right files Example: Java and the CLASSPATH

Paths, INI Files, Programs … Paths are all over the place! They are in initialization files, programs, the Windows registry, … You need to be comfortable with absolute and relative file specs.

Outline Functions and components Storage allocation File manipulation Access controls Migration, backup, recovery

Storage Allocation Allocation Units Storage Allocation Tables Blocking and Buffering

Storage Allocation Allocation Units An allocation unit is the smallest number of secondary storage bytes that can be allocated to a file. Allocation units can not be smaller than the unit of data transfer between the storage device and controller, which is normally called a block.

Storage Allocation Allocation unit size is usually a tradeoff among: Systems Architecture Chapter 12 Storage Allocation Allocation unit size is usually a tradeoff among: Efficient use of secondary storage space for files. Size of storage allocation data structures. Efficiency of storage allocation procedures.

Storage Allocation Storage Allocation Tables Systems Architecture Chapter 12 Storage Allocation Storage Allocation Tables A storage allocation table is a data structure that records which allocation units are free and which belong to files.

Systems Architecture Chapter 12 Storage Allocation

Outline Functions and components Storage allocation File manipulation Migration, backup, recovery Access controls Directories

Storage Allocation

Storage Allocation

Storage Allocation Blocking and Buffering A logical record is a collection of data items, or fields, that is accessed by an application program as a single unit. A physical record is the unit of storage transferred between the device controller and memory in a single operation.

Storage Allocation Blocking and Buffering Logical record grouping within physical records is called blocking. If a physical record contains just one logical record, then the file is said to be unblocked.

Storage Allocation

Storage Allocation Blocking and Buffering: A FMS uses buffers in primary storage to store data temporarily as it moves between programs and secondary storage devices. A buffer is a scratchpad for extracting logical records from physical records.

Storage Allocation

Outline Functions and components Storage allocation File manipulation Access controls Migration, backup, recovery

File Manipulation File Open and Close Operations Delete and Undelete Operations

File Manipulation File Open and Close Operations The FMS must perform several tasks, collectively called a file open operation, before an application program can read or write a file’s contents.

File Manipulation File Open Operation: Locates the file within the directory structure and reads its directory entry. Searches an internal table of open files to see if the file already is open. Ensures that process has sufficient privileges to access the files. Allocates one or more buffers. Updates an internal table of open files.

File Manipulation File Close Operation: Flushing the program’s file I/O buffers to secondary storage. Deallocating buffer memory. Updating the file’s directory entry time stamps. Updating the open file table.

File Manipulation Delete and Undelete Operations In most file management systems, files are not removed immediately from secondary storage when they are deleted. The file’s storage allocation units are marked as free and its directory entry is marked as unused. A user might be able to use the undelete operation to recover the file.

Access Controls A File Management System helps prevent loss, corruption and unauthorized access to files. The operating system is used to identify and authenticate users and their processes. The file access is authenticated through id’s and passwords.

Outline Functions and components Storage allocation File manipulation Access controls Migration, backup, recovery

Access Controls For Example: UNIX defines three access control types: Read Write Execute

Technology Focus – Windows NTFS

Outline Functions and components Storage allocation File manipulation Access controls Migration, backup, recovery

File Migration, Backup and Recovery File Backup Transaction Logging File Recovery Fault Tolerance Mirroring

File Migration, Backup and Recovery File Migration – management technique for secondary storage in which older versions of a file are moved automatically to less costly storage media or devices such as magnetic tape.

File Migration, Backup and Recovery

File Migration, Backup and Recovery File Backup: Full Backup Incremental Backup Differential Backup

File Migration, Backup and Recovery Full Backup – the FMS copies all files and directories for an entire storage volume. Incremental Backup – only the files that have been modified are archived. Differential Backup – only the changed portions of the files are archived.

File Migration, Backup and Recovery Transaction Logging A form of automated file backup. A transaction is any single change to file contents or attributes. Transaction logging provides a high degree of protection against data loss due to program or hardware failure.

File Migration, Backup and Recovery File Recovery The file management system maintains backup logs to aid in locating backup copies of lost or damages files. The recovery utility reconstructs as much of the directory and storage allocation data structures as possible and makes a consistency check.

File Migration, Backup and Recovery Fault Tolerance Describes methods of securing file content against hardware failure. File backup, recovery, and transaction logging are forms or protection against disk failure.

File Migration, Backup and Recovery Mirroring A fault tolerance technique in which all disk write operations are made simultaneously or concurrently to two different storage devices. Disk mirroring provides a high degree of protection against data loss with no performance penalty if implemented in hardware.

Technology Focus

Technology Focus

Technology Focus

Summary The file management system (FMS), usually a part of the operating system, manages all aspects of user and program access to secondary storage. With directories, users can organize the thousands of files stored in a typical computer system.

Summary Secondary storage units are divided into allocation units, which are typically a few kilobytes in size. The FMS allocates buffers to support program file I/O.

Summary The FMS enforces access controls when accessing files on behalf of a user or program. FMSs provide utilities to make backup copies of files and directories and to recover them if needed.