File Management Systems

Slides:



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

Operating System Structures
Chapter 4 : File Systems What is a file system?
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.
OS2-1 Chapter 2 Computer System Structures. OS2-2 Outlines Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
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.
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Chapter 11 Operating Systems
Operating Systems File systems
Chapter 12 File Management Systems
File System Implementation
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
File System. NET+OS 6 File System Architecture Design Goals File System Layer Design Storage Services Layer Design RAM Services Layer Design Flash Services.
General System Architecture and I/O.  I/O devices and the CPU can execute concurrently.  Each device controller is in charge of a particular device.
Chapter 7 Working with Files.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
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 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
Most modern operating systems incorporate these five components.
2.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 2: Computer-System Structures Computer System Operation I/O Structure.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 2: Computer-System Structures Computer System Operation I/O Structure.
Chapter 2: Computer-System Structures
1 CSE Department MAITSandeep Tayal Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection.
Component 4: Introduction to Information and Computer Science Unit 4: Application and System Software Lecture 3 This material was developed by Oregon Health.
1 Chapter 2: Computer-System Structures  Computer System Operation  I/O Structure  Storage Structure  Storage Hierarchy  Hardware Protection  General.
Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection Network Structure.
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.
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.
CE Operating Systems Lecture 17 File systems – interface and implementation.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 2 Computer-System Structures Slide 1 Chapter 2 Computer-System Structures.
Lecture 18 Windows – NT File System (NTFS)
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 2: Computer-System Structures Computer System Architecture and Operation.
File system In computing, a file system is a method of storing and organizing computer files and the data they contain to make it easy to find and access.
Chapter 2: Computer-System Structures(Hardware) or Architecture or Organization Computer System Operation I/O Structure Storage Structure Storage Hierarchy.
Hands-On Microsoft Windows Server 2008 Chapter 7 Configuring and Managing Data Storage.
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
Chapter 12: File System Implementation
CIS 212 Microcomputer Architecture Day 26
Chapter 11: File System Implementation
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 2: Computer-System Structures Computer System Operation I/O Structure Storage.
Operation System Program 4
Chapter 11: File System Implementation
Chapter 11: File System Implementation
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Computer-System Architecture
Module 2: Computer-System Structures
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Modern PC operating systems
Module 2: Computer-System Structures
Chapter 11: File System Implementation
Chapter 2: Computer-System Structures
Chapter 2: Computer-System Structures
Module 2: Computer-System Structures
Chapter 2: Operating-System Structures
Module 2: Computer-System Structures
Presentation transcript:

File Management Systems Chapter 12 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 Explain how secondary storage locations are allocated to files and describe the data structures used to record those allocations

Chapter goals cont. Describe file manipulation operations, including open, close, read, delete, and undelete operations List access controls that can be applied to files and directories Describe security, backup, recovery, and fault tolerance methods and procedures

File Management Systems FMS is implemented in layers like the OS Command layer or application program File control Storage I/O control Storage devices

File Man. Systems Layers

FMS Layers Storage devices – corresponds with hardware layer of OS Interacts with the bus and with operating system device drivers to transfer data between storage devices and memory

FMS layers Storage I/O control – accesses storage locations and manages data movement between storage devices and memory Part of OS kernel Its software modules include Device drivers for each storage device or device controller Interrupt handlers Buffers and cache managers

FMS layers cont. File Control – provides a set of service functions for manipulating files and directories Processes service calls from users and applications Maintains directory and storage allocation data structures used to locate files and their associated physical locations Command layer or application program – users perform common file management functions such as copying, moving and renaming

Logical vs. physical view 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

Logical vs. physical view

Logical vs. physical view of a file File is subdivided into records Record usually contains information about a single customer, thing such as a product in inventory, or an event Records are divided into fields Fields are individual units of data

Logical vs. physical Logical file structure is independent of its physical implementation Logical file structure “ignores” Physical storage allocations – records can be stored in separate file locations Data access methods Data encoding methods

Logical structure of data file

File content and type A file is a collection of data created by an applications The format of that information is called the file 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 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

Registered Windows File Types In windows the extension of a file can be associated (connected) to a specific application When you open a file associated with an application, that application is started and the file is opened in the associated application Show associated file types – control panel, folder options

Directory content and structure Files are organized into directories Some directories are created and maintained by software Windows directories Directories associated with applications User can also create and maintain directories

Directory content Directories in windows are organized in a hierarchy Directory information includes: Name File type Location Size Ownership Access controls Time stamp(s) Show directory information for C drive

Directory Content and Structure Typical file ownership permissions are: Create Read Update delete 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

Hierarchical Directory Structure Windows directory structure is hierarchical Directories can contain other directories (called sub-directories) Directories can not have more than one parent Sometimes called a tree structure (draw picture)

Hierarchical directory structures

Storage allocation Users and applications programs continually create and change files When files are created they must be given space in storage When files grow they must be given additional space When files shrink unneeded space must be released

Allocation units Allocation unit is smallest unit of space that can be allocated to a file Allocation units cannot be smaller than system data transfer unit Data transfer unit is called a block Block sizes range from 512 bytes to 4 KB in multiples of 512 bytes

Allocation units cont. Is a multiple of block size, i.e. equal to 4 blocks, 8 blocks, etc. Size of allocation unit is optimized to use space efficiently

Storage allocation tables FMS maintains a table of storage allocation units Records which units belong to which file Records which units are available (free) In windows this table called File Allocation Table or FAT

Sample allocations of files The next three slides show 3 files, how their storage is allocated, and how FMS records location of allocation units Storage units are said to be “chained together” using pointer Each unit contains reference (pointer) to next unit in the list

Directory listing of 3 files

Where 3 files are stored

How FMS finds files

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

Blocking and buffering Most of the time the logical size of a record does not equal the physical allocation unit When several logical records are grouped within physical records that is called blocking Individual logical records grouped together into one unit called a block

Blocking and buffering cont. Simplifies data transfer between drive and memory Then OS must extract individual records from the allocation unit block If a physical record contains just one logical record, then the file is said to be unblocked

Blocking records

Buffer Buffer is storage area in memory where blocks of records from drive are copies Buffer is used to extract individual records from a block

Using buffers

Operations on files There are setup requirements that need to be executed whenever a file is first requested by an application and when that file is not longer needed These operations are called File open File close

File open When an application requests a file, the FMS must do the follow: The file must be located on the storage device Ensure that application has right to access this file Allocates one or more buffers Updates internal table of open files

File close When application sends request to close a file, FMS does the following: Flushing the program’s I/O buffers to secondary storage De-allocate buffer memory Update directory entry time stamp Update file open table

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 Recyling bin in windows allows files to be undeleted

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

Access control For Example: UNIX defines three access control types: Read Write Execute Internet web sites – you can read pages but not change them (unless you are a hacker)

FMS Backup options 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

Windows backup Programs accessories system tools

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 Secondary storage units are divided into allocation units, which are typically a few kilobytes in size

Summary cont. The FMS allocates buffers to support program file I/O 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