1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,

Slides:



Advertisements
Similar presentations
Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Advertisements

Scenario: EOT/EOT-R/COT Resident admitted March 10th Admitted for PT and OT following knee replacement for patient with CHF, COPD, shortness of breath.
Process Description and Control
AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Processes and Operating Systems
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
David Burdett May 11, 2004 Package Binding for WS CDL.
Local Customization Chapter 2. Local Customization 2-2 Objectives Customization Considerations Types of Data Elements Location for Locally Defined Data.
CALENDAR.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt BlendsDigraphsShort.
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt RhymesMapsMathInsects.
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
1. PHOTO INDEX Bayside: Page 5-7 Other Colour Leon: Page 8-10 Cabrera Page Canaria Page Driftwood Page 16 Florence Florence and Corfu Page.
Break Time Remaining 10:00.
File Management in Operating System
File Management.
Turing Machines.
Table 12.1: Cash Flows to a Cash and Carry Trading Strategy.
PP Test Review Sections 6-1 to 6-6
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
Operating Systems Operating Systems - Winter 2012 Chapter 4 – Memory Management Vrije Universiteit Amsterdam.
Operating Systems Operating Systems - Winter 2010 Chapter 3 – Input/Output Vrije Universiteit Amsterdam.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Sistemas de Ficheiros Ficheiros Diretórios
Chapter 6 File Systems 6.1 Files 6.2 Directories
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
Adding Up In Chunks.
MaK_Full ahead loaded 1 Alarm Page Directory (F11)
1 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt 10 pt 15 pt 20 pt 25 pt 5 pt Synthetic.
: 3 00.
5 minutes.
1 hi at no doifpi me be go we of at be do go hi if me no of pi we Inorder Traversal Inorder traversal. n Visit the left subtree. n Visit the node. n Visit.
1 Let’s Recapitulate. 2 Regular Languages DFAs NFAs Regular Expressions Regular Grammars.
Speak Up for Safety Dr. Susan Strauss Harassment & Bullying Consultant November 9, 2012.
Essential Cell Biology
Converting a Fraction to %
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Chapter 13 Web Page Design Studio
Physics for Scientists & Engineers, 3rd Edition
Energy Generation in Mitochondria and Chlorplasts
Select a time to count down from the clock above
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
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 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 Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
File Management.
File Management Chapter 12.
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 pages1 File Management Chapter 12.
Lecture 23 File-System II File Organization. Criteria for File Organization Rapid access –needed when accessing a single record –not needed for batch.
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.
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged (kernel) application.
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
File Management Chapter 12.
Chapter 12 File Management
Presentation transcript:

1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings

2 File Management File management system consists of system utility programs that run as privileged applications Concerned with secondary storage Long-term existence Shared between processes Structure (internal or directories)

3 File Attributes Possible file attributes

4 File System Calls Principle Win32 API functions for file I/O Second column gives nearest UNIX equivalent

5 Files System Software Architecture

6 Elements of File Management

7 File Management Functions Identify and locate a selected file Use a directory to describe the location of all files plus their attributes On a shared system describe user access control

8 Criteria for File Organization Quick random access –Needed when accessing a single record Ease of update Economy of storage –Should be minimum redundancy in the data –Redundancy can be used to speed access such as an index Simple maintenance Reliability

9 The Pile

10 The Sequential File

11 Indexed Sequential File

12 Indexed File

13 File Organization The Direct or Hashed File –Directly access a block at a known address –Key field required for each record

14 Performance

15 File Directories Contains information about files –Attributes –Location –Ownership Directory itself is a file owned by the operating system Provides mapping between file names and the files themselves

16 Information Elements of a File Directory

17 Information Elements of a File Directory

18 Hierarchical, or Tree-Structured Directory Master directory with user directories underneath it Each user directory may have subdirectories and files as entries

19 Tree-Structured Directory

20 Example of Tree-Structured Directory

21 Hierarchical, or Tree-Structured Directory Files can be located by following a path from the root, or master, directory down various branches –This is the pathname for the file Can have several files with the same file name as long as they have unique path names Current directory is the working directory Files are referenced relative to the working directory

22 Directory System Calls Principle Win32 API functions for directory management Second column gives nearest UNIX equivalent, when one exists

23 File Sharing In multiuser system, allow files to be shared among users Two issues –Access rights (read, write, execute) –Management of simultaneous access (cf. interprocess communication, mutual exclusion)

24 Access Matrix

25 Access Control List

26 Capability Lists

27 File System Implementation A possible file system layout

28 Secondary Storage Management Space must be allocated to files Must keep track of the space available for allocation

29 Disk Space Management Dark line (left hand scale) gives data rate of a disk Dotted line (right hand scale) gives disk space efficiency All files 2KB Block size

30 Contiguous Allocation Single set of blocks is allocated to a file at the time of creation Only a single entry in the file allocation table –Starting block and length of the file External fragmentation will occur –Need to perform compaction

31 Contiguous File Allocation

32 Contiguous File Allocation

33 Chained Allocation Allocation on basis of individual block Each block contains a pointer to the next block in the chain Only single entry in the file allocation table –Starting block and length of file

34 Chained Allocation No external fragmentation Best for sequential files No accommodation of the principle of locality

35 Chained Allocation

36 Chained Allocation

37 Indexed Allocation File allocation table contains a separate one- level index for each file The index has one entry for each portion allocated to the file The file allocation table contains block number for the index

38 Indexed Allocation

39 The MS-DOS File System (1) The MS-DOS directory entry

40 The MS-DOS File System (2) Maximum partition for different block sizes The empty boxes represent forbidden combinations

41 Inodes Index node Control structure that contains key information for a particular file: attributes and location of blocks

42 FreeBSD File Allocation

43 UNIX Directories and Inodes

44 The UNIX File System The steps in looking up /usr/ast/mbox

45 Shared Files (1) File system containing a shared file

46 Shared Files (2) (a) Situation prior to linking (b) After the link is created (c) After the original owner removes the file

47 Windows 2000 (1) The NTFS master file table

48 Windows 2000 (2) An MFT record for a three-run, nine-block file

49 Windows 2000 (3) A file that requires three MFT records to store its runs

50 Linux Virtual File System Uniform file system interface to user processes Represents any conceivable file systems general feature and behavior Assumes files are objects that share basic properties regardless of the target file system

51 Linux Virtual File System Context

52 Linux Virtual File System Concept