Sistemas de Ficheiros Ficheiros Diretórios

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

AP STUDY SESSION 2.
1
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
Objectives: Generate and describe sequences. Vocabulary:
David Burdett May 11, 2004 Package Binding for WS CDL.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
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.
Chapter 6 File Systems 6.1 Files 6.2 Directories
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Click here to End Presentation Software: Installation and Updates Internet Download CD release NACIS Updates.
Break Time Remaining 10:00.
4.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 4: Organizing a Disk for Data.
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
Bright Futures Guidelines Priorities and Screening Tables
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.
Exarte Bezoek aan de Mediacampus Bachelor in de grafische en digitale media April 2014.
Tanenbaum & Woodhull, Operating Systems: Design and Implementation, (c) 2006 Prentice-Hall, Inc. All rights reserved OPERATING SYSTEMS DESIGN.
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..
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Adding Up In Chunks.
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.
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.
Analyzing Genes and Genomes
Essential Cell Biology
Clock will move after 1 minute
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
Murach’s OS/390 and z/OS JCLChapter 16, Slide 1 © 2002, Mike Murach & Associates, Inc.
Chapter 4 : File Systems What is a file system?
Operating Systems File Systems CNS 3060.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
File Systems Topics –File –Directory –File System Implementation Reference: Chapter 5: File Systems Operating Systems Design and Implementation (Second.
Chapter 4 File Systems Management and Optimization Example File Systems.
Ceng Operating Systems
Chapter 6 File Systems 6.1 Files 6.2 Directories
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.
1 Friday, July 07, 2006 “Vision without action is a daydream, Action without a vision is a nightmare.” - Japanese Proverb.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 4 File Systems Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Some basic concepts and information on file systems Portions taken and modified from books by ANDREW S. TANENBAUM.
CS450/550 FileSystems.1 Adapted from MOS2E UC. Colorado Springs CS450/550 Operating Systems Lecture 6 File Systems Palden Lama Department of Computer.
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.
Annotated by B. Hirsbrunner File Systems Chapter Files 5.2 Directories 5.3 File System Implementation 5.4 Security 5.5 Protection Mechanism 5.6 Overview.
1 Pertemuan 22 Implementasi Sistem File Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
操作系统原理 OPERATING SYSTEMS Chapter 4 File Systems 文件系统.
Fall 2011 Nassau Community College ITE153 – Operating Systems 1 Session 5 Files.
MODERN OPERATING SYSTEMS Third Edition ANDREW S
CS510 Operating System Foundations
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
Chapter 6 File Systems 6.1 Files 6.2 Directories
Chapter 5 File Systems -Compiled for MCA, PU
Presentation transcript:

Sistemas de Ficheiros Ficheiros Diretórios Implementação de sistemas de ficheiros Exemplos de sistemas de ficheiros

Armazenamento de Informação de Longo Prazo Deve armazenar grandes massas de dados Informação armazenada deve ser persistente, isto é, deve se manter após o término do processo que a estava utilizando Múltiplos processos devem poder aceder os dados de forma concorrente

Extensões típicas de ficheiros Nomes de ficheiros Extensões típicas de ficheiros

File Structure 3 tipos de ficheiros Sequência de bytes Sequência de registros árvores

File Types (a) Ficheiro executável (b) Um archive BSS = Block Stated by Symbol (vars globais não inicializadas (a) Ficheiro executável (b) Um archive

File access Sequential access Random access read all bytes/records from the beginning cannot jump around, could rewind or back up convenient when medium was mag tape Random access bytes/records read in any order essential for data base systems read can be … move file marker (seek), then read or … read and then move file marker

Possible file attributes

File Operations Create Append Delete Seek Open Get attributes Close Read Write Append Seek Get attributes Set Attributes Rename

An Example Program Using File System Calls (1/2)

An Example Program Using File System Calls (2/2)

Directories Single-Level Directory Systems A single level directory system contains 4 files owned by 3 different people, A, B, and C

Two-level Directory Systems Letters indicate owners of the directories and files

Hierarchical Directory Systems A hierarchical directory system

Path Names A UNIX directory tree

Directory Operations Readdir Create Rename Delete Link Opendir Unlink Closedir

File System Implementation MBR = Master Boot Record A possible file system layout

Implementing Files (1) (a) Contiguous allocation of disk space for 7 files (b) State of the disk after files D and E have been removed

Storing a file as a linked list of disk blocks Implementing Files (2) Storing a file as a linked list of disk blocks

Linked list allocation using a file allocation table in RAM Implementing Files (3) Linked list allocation using a file allocation table in RAM

Implementing Files (4) An example i-node

Implementing Directories (1) (a) A simple directory fixed size entries disk addresses and attributes in directory entry (b) Directory in which each entry just refers to an i-node

Implementing Directories (2) Two ways of handling long file names in directory (a) In-line (b) In a heap

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

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

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

Disk Space Management (2) (a) Storing the free list on a linked list (b) A bit map

Disk Space Management (3) (a) Almost-full block of pointers to free disk blocks in RAM - three blocks of pointers on disk (b) Result of freeing a 3-block file (c) Alternative strategy for handling 3 free blocks - shaded entries are pointers to free disk blocks

Disk Space Management (4) Quotas for keeping track of each user’s disk use

File System Reliability (1) File that has not changed A file system to be dumped squares are directories, circles are files shaded items, modified since last dump each directory & file labeled by i-node number

File System Reliability (2) Bit maps used by the logical dumping algorithm

File System Reliability (3) File system states (a) consistent (b) missing block (c) duplicate block in free list (d) duplicate data block

File System Performance (1) The block cache data structures

File System Performance (2) I-nodes placed at the start of the disk Disk divided into cylinder groups each with its own blocks and i-nodes

Log-Structured File Systems With CPUs faster, memory larger disk caches can also be larger increasing number of read requests can come from cache thus, most disk accesses will be writes LFS Strategy structures entire disk as a log have all writes initially buffered in memory periodically write these to the end of the disk log when file opened, locate i-node, then find blocks

Example File Systems CD-ROM File Systems The ISO 9660 directory entry

The CP/M File System (1) Memory layout of CP/M

The CP/M directory entry format The CP/M File System (2) The CP/M directory entry format

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

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

The Windows 98 File System (1) Bytes The extended MS-DOS directory entry used in Windows 98

The Windows 98 File System (2) Bytes Checksum An entry for (part of) a long file name in Windows 98

The Windows 98 File System (3) An example of how a long name is stored in Windows 98

The UNIX V7 File System (1) A UNIX V7 directory entry

The UNIX V7 File System (2) A UNIX i-node

The UNIX V7 File System (3) The steps in looking up /usr/ast/mbox