Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.

Slides:



Advertisements
Similar presentations
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Advertisements

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.
1 Chapter 11: File-System Interface  File Concept  Access Methods  Directory Structure  File System Mounting  File Sharing  Protection  Chapter.
Chapter 11 File Systems and Directories Nell Dale John Lewis.
Chapter 10: File-System Interface
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File System CS105. File Systems A method of storing and organizing computer files and their data Usually reside on secondary storage devices – Hard disks.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
File Management Systems
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
File Systems. 2 Storing Information Applications can store it in the process address space Why is it a bad idea? –Size is limited to size of virtual address.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
11/7/06 1 Hofstra University - CSC005 Chapter 11 File Systems and Directories.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Chapter 12 – Disk Performance Optimization Outline 12.1 Introduction 12.2Evolution of Secondary Storage 12.3Characteristics of Moving-Head Disk Storage.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
Chapter 12 File Management Systems
04/21/2004CSCI 315 Operating Systems Design1 Disk Scheduling.
Secondary Storage Management Hank Levy. 8/7/20152 Secondary Storage • Secondary Storage is usually: –anything outside of “primary memory” –storage that.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 12: Mass-Storage Systems.
Chapter 10 File System Interface
CS 346 – Chapter 10 Mass storage –Advantages? –Disk features –Disk scheduling –Disk formatting –Managing swap space –RAID.
Chapter 11 File Systems and Directories Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and.
Computer Systems Week 10: File Organisation Alma Whitfield.
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.
CS105 INTRODUCTION TO COMPUTER CONCEPTS OPERATING SYSTEMS LAYER Instructor: Cuong (Charlie) Pham.
1 Chapter 12 File Management Systems. 2 Systems Architecture Chapter 12.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
File Systems Long-term Information Storage Store large amounts of information Information must survive the termination of the process using it Multiple.
File Structures Foundations of Computer Science  Cengage Learning.
Chapter 8 File Management Understanding Operating Systems, Fourth Edition.
NETW3005 File System Interface. Reading For this lecture, you should have read Chapter 10 (Sections 1-5) and Chapter 11 (Sections 1-4). NETW3005 (Operating.
1Fall 2008, Chapter 12 Disk Hardware Arm can move in and out Read / write head can access a ring of data as the disk rotates Disk consists of one or more.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 1, 2005 Chapter 10: File-System.
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
File System Interface. File Concept Access Methods Directory Structure File-System Mounting File Sharing (skip)‏ File Protection.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Page 110/19/2015 CSE 30341: Operating Systems Principles Chapter 10: File-System Interface  Objectives:  To explain the function of file systems  To.
Chapter 11 File Systems and Directories. 2 File Systems File: A named collection of related data. File system: The logical view that an operating system.
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Operating Systems COMP 4850/CISG 5550 File Systems Files Dr. James Money.
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.
Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
CS 1308 Computer Literacy and the Internet File Systems and Directories.
CPS120: Introduction to Computer Science File Systems and Directories Nell Dale John Lewis.
File system.
A little hardware; a little software CS 139 – 08/29/07.
Chapter 11 File Systems and Directories. Chapter Goals Files, directories, and file systems Text and Binary files Disk-scheduling algorithms 11-2.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10 & 11: File-System Interface and Implementation.
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
Chapter 11 File Systems and Directories. 2 File Systems (Chapter 11.1) File: 1. A named collection of related data. 2.smallest amount of information that.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
Operating System Architecture
Operating Systems (CS 340 D)
Lecture 45 Syed Mansoor Sarwar
File Systems and Directories
Secondary Storage Management Brian Bershad
Week 1: File Systems and Directories
Files Management – The interfacing
Algorithms File Systems Lab Environment.
Secondary Storage Management Hank Levy
Lecture 4: File-System Interface
Lecture Topics: 11/20 HW 7 What happens on a memory reference Traps
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Chapter 11 File Systems and Directories

2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary files Identify various file types by their extensions Explain how file types improve file usage Define the basic operations on a file

3 Discuss the issues related to file protection Describe a directory tree Create absolute and relative paths for a directory tree Describe several disk-scheduling algorithms Chapter Goals

4 File Systems File (= “document”) A named collection of related data, used for organizing secondary memory Directory (or “folder”) A named group of files --- Real life “file” = Computer “folder” --- File system The operating system's logical view of the files it manages

5 Text and Binary Files Text file A file that contains only characters from the ASCII or Unicode character sets Binary file A file that contains data in a specific format, requiring special interpretation of its bits

6 The terms text file and binary file are somewhat misleading Ultimately, all information on a computer is stored as binary digits Text files are formatted as chunks of 8 or 16 bits, interpreted as characters Binary files are formatted in some other special format Text and Binary Files

7 File Types File Type The kind of information contained in a document Most files, regardless of format, contain a specific type of information File extension Part of a file name that indicates the type File names are often in two parts: File name. File Extension

8 What kind of files are –Chapter.docx –Figure1.jpg –Interview.wav –MyFavorite.mp3 Figure 11.1 Some common file types and their extensions What's the advantage of using the appropriate extension? File Types

9 Save your paper as..? –paper.docx –paper.html –paper.htm –paper.rtf –paper.pdf –paper.txt what’s the difference? File Types

10 File Protection File protection The process of limiting file access –In multiuser systems, file protection is of primary importance –We don’t want one user to be able to access another user’s files unless the access is specifically allowed –A file protection mechanism determines who can use a file and for what general purpose

11 An example of a file protection scheme is the file settings in the Unix operating system, which are divided into three categories File Protection

12 Directory Trees Recall that a directory is a named group of files. A directory can be contained within another directory CSI PP Slides Chapter01.ppt Chapter17.ppt … Edition 3 Directory Files

13 Parent directory The containing directory Subdirectory The directory being contained Directory tree A logical view of a file system; a structure showing the nested directory organization of a file system Root directory The directory at the highest level Directory Trees

14 Figure 11.4 A Windows directory tree Directory Trees

15 At any point in time, you can be thought of as working in a particular location (that is, a particular subdirectory) Working directory The subdirectory in which you are working Directory Trees

16 A Unix Directory Tree Figure 11.5 A Unix directory tree Figure 11.5 A UNIX directory tree

17 Path Names Path A text designation of the location of a file or subdirectory in a file system Absolute path A path that begins at the root and includes all successive subdirectories Relative path A path name that begins at the current working directory

18 Absolute paths - specifies the entire path from the root directory down to the file Examples: C:\Program Files\MS Office\WinWord.exe C:\My Documents\letters\applications\vaTech.doc C:\Windows\System\QuickTime Path Names

19 Example: Absolute Path C:\My Documents\letters\applications\vaTech.doc

20 Relative paths - specifies path starting at current working directory Examples: If current working directory is C:\My Documents\letters Relative paths cancelMag.doc applications\calState.doc Path Names

21 Example: Relative Path applications\vaTech.doc current working directory C:\My Documents\letters Relative Path

22 Relative Paths Can go “up” in tree by using “..\” in path name If current working directory is C:\My Documents\letters Examples:..\ = My Documents..\..\ = C:\

23 current working directory C:\My Documents\letters..\downloads\brooks.mp3 Relative Path Relative Paths

24 Files: Directory Information The OS stores information about where each file is on the disk. When a file is deleted, it is not really erased. Instead, its location information is just deleted, and the space the file took up is marked as free space for future use. Implications for data recovery and security

25 Disk Scheduling Processes are waiting for I/O to be performed. Which of those waiting should be performed next? Recall that I/O is the slowest aspect of any computing system

26 As a computer deals with multiple processes over a period of time, a list of requests to access the disk builds up Disk scheduling The technique that the operating system uses to determine which requests to satisfy first Disk Scheduling

Figure 11.5 A magnetic disk drive Remember seek time and latency? Disk Scheduling

28 First-Come, First-Served (FCFS) Requests are serviced in the order they arrive, without regard to the current position of the heads Shortest-seek-time-first (SSTF) Disk heads are moved the minimum amount possible to satisfy a pending request Scan Disk heads continuously move in and out servicing requests as they are encountered Sound familiar? Disk Scheduling

29 SCAN Disk Scheduling works like an elevator –An elevator is designed to visit floors that have people waiting. In general, an elevator moves from one extreme to the other (say, the top of the building to the bottom), servicing requests as appropriate –The SCAN disk-scheduling algorithm works in a similar way, except instead of moving up and down, the read/write heads move in toward the spindle, then out toward the platter edge, then back toward the spindle, and so forth Disk Scheduling