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.

Slides:



Advertisements
Similar presentations
File-System Interface
Advertisements

Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Chapter 4 : File Systems What is a file system?
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-System Interface
Dr. Kalpakis CMSC 421, Operating Systems. Fall 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
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.
Why Do We Need Files? Must store large amounts of data. Information stored must survive the termination of the process using it - that is, be persistent.
Chapter 10: File-System Interface Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 10: File-System Interface File Concept.
Operating Systems File systems
Chapter 12 File Management Systems
File Concept l Contiguous logical address space l Types: Data: numeric, character, binary Program: source, object (load image) Documents.
Part two. 3.2 operating system architecture  Software have two categories  Application software  System software  Application software: consists of.
Chapter 10 File System Interface
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.
Chapter 11 File Systems and Directories. 2 Chapter Goals Describe the purpose of files, file systems, and directories Distinguish between text and binary.
Computer Studies (AL) File Management File system interface.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 10: File-System Interface.
Silberschatz, Galvin and Gagne  Operating System Concepts File Concept Contiguous logical address space Smallest user allocation Non-volatile.
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.
File System Management File system management encompasses the provision of a way to store your data in a computer, as well as a way for you to find and.
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.
Chapter 10: File-System Interface 10.1 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts – 8 th Edition 2014.
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.
Operating Systems (CS 340 D) Dr. Abeer Mahmoud Princess Nora University Faculty of Computer & Information Systems Computer science Department.
CSC 322 Operating Systems Concepts Lecture - 19: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 11: File-System Interface File Concept Access Methods Directory Structure.
Chapter 14: Files and Streams. 2Microsoft Visual C# 2012, Fifth Edition Files and the File and Directory Classes Temporary storage – Usually called computer.
CS 346 – Chapter 11 File system –Files –Access –Directories –Mounting –Sharing –Protection.
A little hardware; a little software CS 139 – 08/29/07.
14.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 10 & 11: File-System Interface and Implementation.
It consists of two parts: collection of files – stores related data directory structure – organizes & provides information Some file systems may have.
SOCSAMS e-learning Dept. of Computer Applications, MES College Marampally FILE SYSTEM.
Lecture Topics: 11/29 File System Interface –Files and Directories –Access Methods –Protection –Consistency.
File Systems - Part I CS Introduction to Operating Systems.
SVBIT SUBJECT:- Operating System TOPICS:- File Management
Operating Systems (CS 340 D) Princess Nora University Faculty of Computer & Information Systems Computer science Department.
CSE Operating System Principles File Systems.
Operating System Architecture
File System Interface CSSE 332 Operating Systems
Module 10: File-System Interface
Chapter 11: File-System Interface
Operating Systems (CS 340 D)
Chapter 13: File Input and Output
File Systems and Directories
Week 1: File Systems and Directories
Chapter 10: File-System Interface
Files Management – The interfacing
Algorithms File Systems Lab Environment.
Module 10: File-System Interface
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

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 can be written to secondary storage. 3.sequence of bits, bytes, lines or records File system: Operating System’s logical view of files it manages. Often organized into a hierarchy (tree). Directory: A named group of files. Also called a folder.

3 Text and Binary Files file: - contains a program or data - creator of a file decides how it is organized - all computer files are patterns of 0’s and 1’s Text file: A file in which the bytes of data are organized as characters from the ASCII or Unicode character sets. Binary file: A file that contains data in a specific format, requiring interpretation.

4 Text and Binary Files (qualifier) The terms text file and binary file are somewhat misleading… They seem to imply that the information in a text file is not stored as binary data. Ultimately, all information on a computer is stored as binary digits. These terms refer to how those bits are formatted: as chunks of 8 or 16 bits, interpreted as characters, or in some other special format.

5 File Types file type: identifies the kind of information in a file, and, therefore, the organization of the file For example, a file may contain a program, an image, or an audio clip. file extension: indicates the file type Example: MyProg.exe Warning: file extension is only helper information, it does not guarantee the file contents are actually organized that way. You can lie!!

6 File Types Why are file extensions helpful? 1. OS uses file extension to select display icon, which helps user identify type of data in the file. 2. double-click on icon launches associated application and opens the data file

7 File Types File names are often separated, usually by a period, into two parts:  Main name  File extension The file extension indicates the type of the file. Figure 11.1 Some common file types and their extensions

8 File Operations Must distinguish between operations on files as atomic units and processing data inside Atomic operations: delete, open, close, rename, copy Processing data: read data, write data, reposition file pointer, append data, truncate

9 File Access Sequential access: Information in the file is processed in order, and read and write operations move the current file pointer as far as needed to read or write the data. The most common file access technique, and the simplest to implement. Note: this largely describes file access and data processing, pre Files were stored on magnetic tape and batch processed.

10 File Access Figure 11.2 Sequential file access

11 File Access Direct access: Files are conceptually divided into numbered logical records and each logical record can be accessed directly by number. Note: Files are now stored on magnetic (hard disc) or optical discs (CD/DVD-ROM), or other direct access devices (Flash drive).

12 File Access Figure 11.3 Direct file access

13 File Protection 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.

14 File Protection A file’s protection settings in the Unix operating system is divided into three categories  Owner  Group  World Page 356

15 Directory Trees (Chapter 11.2) A directory of files can be contained within another directory. The directory containing another is usually called the parent directory, and the one inside is called a subdirectory. Directory tree: file system is commonly organized into a hierarchy called a directory tree. Looks like an upside-down tree. (UNIX OS, 1974) Root directory: where the file system starts (indicated by \ (Windows), or / (UNIX)

16 Directory Trees Figure 11.4 A Windows directory tree

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

18 Path Names Path: location of a file or subdirectory in a file system, consisting of the series of directories through which you must go to find the file or subdirectory. Absolute path: begins at the root directory Relative path: begins at the current or working directory.

19 Path Names Examples of absolute paths: C:\Program Files\MS Office\WinWord.exe C:\My Documents\letters\applications\vaTech.doc C:\Windows\System\QuickTime

20 Path Names Examples of relative paths: Suppose the current working directory is C:\My Documents\letters Then the following relative path names could be used: cancelMag.doc applications\calState.doc..\csc101\proj2.java..\..\WINDOWS\Drivers\E55IC.ICM