J.Tiberghien Chapitre 9 Organisation des disques et gestion des fichiers.

Slides:



Advertisements
Similar presentations
1. HDD Partition Setup Insert Booting Diskette to A: drive and turn on the power. Then it will be boot by floppy diskette. 1 Type FDISK and press Enter.
Advertisements

Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
0 - 0.
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
Addition Facts
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,
SE-292 High Performance Computing
Secondary Storage Devices: Magnetic Disks
Storing Data: Disks and Files
Chapter 12: File System Implementation
File and Disk Maintenance
File Management.
Databasteknik Databaser och bioinformatik Data structures and Indexing (II) Fang Wei-Kleiner.
Windows File Systems CGS2564. Who Cares? C:\Documents\Taxes\Tax04.DOC.
Sistemas de Ficheiros Ficheiros Diretórios
File Systems: Fundamentals.
Chapter 6 File Systems 6.1 Files 6.2 Directories
COMP091 – Operating Systems 1
Operating Systems File Management.
Addition 1’s to 20.
25 seconds left…...
Week 1.
SE-292 High Performance Computing
SE-292 High Performance Computing Memory Hierarchy R. Govindarajan
Chapter 4 : File Systems What is a file system?
SEMINAR ON FILE SLACK AND DISK SLACK
File Systems Examples.
Lecture 10: The FAT, VFAT, and NTFS Filesystems 6/17/2003 CSCE 590 Summer 2003.
File System Implementation CSCI 444/544 Operating Systems Fall 2008.
1 Operating Systems Chapter 7-File-System File Concept Access Methods Directory Structure Protection File-System Structure Allocation Methods Free-Space.
Ceng Operating Systems
1 File Management in Representative Operating Systems.
Wince File systems. File system on embedded File system choice on embedded is important –File system size can be an issue –Different media are used –
Contiguous Allocation of Disk Space. Linked Allocation.
 FILE S SYSTEM  DIFFERENT FILE SYSTEMS  FILE SYSTEM COMPONENTS  FILE OPERATIONS  LOG STRUCTERD FILE SYSTEM  FILE EXAMPLES.
Chapter 5 Part 2 Secondary Storage Mgt. File Mgt. in Popular OSs
File Systems (1). Readings r Silbershatz et al: 10.1,10.2,
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
1 File Systems Chapter Files 6.2 Directories 6.3 File system implementation 6.4 Example file systems.
Chapter 11: File System Implementation Hung Q. Ngo KyungHee University Spring 2009
File System Implementation Chapter 12. File system Organization Application programs Application programs Logical file system Logical file system manages.
Windows NTFS Introduction to Operating Systems: Module 15.
File Systems CSCI What is a file? A file is information that is stored on disks or other external media.
10/22/2015CST Operating Systems1 Operating Systems CST 352 File Systems.
Chapter 3 Partitioning Drives using NTFS and FAT32 Prepared by: Khurram N. Shamsi.
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.
1 Floppy Drive Formatting ©Richard Goldman February, 2001.
Lecture 18 Windows – NT File System (NTFS)
File Systems. 2 What is a file? A repository for data Is long lasting (until explicitly deleted).
FAT File Allocation Table
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems File systems.
Chapter 6 File Systems. Essential requirements 1. Store very large amount of information 2. Must survive the termination of processes persistent 3. Concurrent.
Lecture Topics: 11/22 HW 7 File systems –block allocation Unix and NT –disk scheduling –file caches –RAID.
File Systems May 12, 2000 Instructor: Gary Kimura.
File System Department of Computer Science Southern Illinois University Edwardsville Spring, 2016 Dr. Hiroshi Fujinoki CS 314.
BITS Pilani Pilani Campus Pawan Sharma Lecture ES C263 INSTR/CS/EEE F241 Microprocessor Programming and Interfacing.
Day 28 File System.
CENG334 Introduction to Operating Systems
Filesystems.
EECE.4810/EECE.5730 Operating Systems
CS510 Operating System Foundations
File Systems Implementation
Chapter 3: Windows7 Part 3.
Chapter 16 File Management
Disk Structure Analysis
Chapter 14: File-System Implementation
File system : Disk Space Management
Department of Computer Science
SE350: Operating Systems Lecture 12: File Systems.
Presentation transcript:

J.Tiberghien Chapitre 9 Organisation des disques et gestion des fichiers

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien Writing on magnetic memories i

J.Tiberghien Manchester Code i t

J.Tiberghien Reading from magnetic memory e

J.Tiberghien Data blocks HeaderData BlockCheck XXXXXXXXX Check = f(data block) Synchronization sequence

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien Disk Organization Sector Track Cylinder

J.Tiberghien Tracks/cylinder Cylinders Sectors/track Bytes/sector Total Capacity(in bytes) Double Density High density Format of 3.5 diskettes for PCs. Sectors/Cluster 2 1

J.Tiberghien Tracks/cylinder Cylinders Sectors/track Bytes/sector Total Capacity(in bytes) Format of 428 MBytes Hard Disk. Sectors/Cluster (16 bit fat)16

J.Tiberghien Minimum Cluster Size (with a 16 bit FAT) Disk Size 128 MB 256 MB 512 MB 1 GB 2 GB 4 GB Cluster Size 2 kB 4 kB 8 kB 16 kB 32 kB 64 kB Sectors/Cluster

J.Tiberghien Space lost to Slack Block SizeUsed SpaceSlack (Bytes)(MBytes)(%)

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien Mapping the Files on the Disk Contiguous Block Allocation –When throughput is critical –When almost no file creation or deletion –Regular space reorganizations required Random Block Allocation –When disk space is critical –When lots of file creations and deletions –Disk space optimizations beneficial for performance

J.Tiberghien Contiguous Block Allocation FreeF7F1F5F3.1F3F2F6F4 Del F1, F5 F8 Save F8 Sorry, Insufficient Disk Space ! Pack FreeF7Free F3.1F3F2F6F4 FreeF7F6F3F2F4 Save F8 F8FreeF7F6F3F2F4

J.Tiberghien Mapping the Files on the Disk Contiguous Block Allocation –When throughput is critical –When almost no file creation or deletion –Regular space reorganizations required Random Block Allocation –When disk space is critical –When lots of file creations and deletions –Disk space optimizations beneficial for performance

J.Tiberghien File Access Table (MS/DOS) DISK FAT Cluster 0 Cluster x One entry per Logical Cluster Number

J.Tiberghien Conceptual FAT model Stream a Stream b Stream c Stream d... Free VCN =0123 LCN

J.Tiberghien Partial view of FAT Directory PointerLCN FAT contents Disk contents Stream a >0 1 Stream a, cluster Stream a, cluster Stream a, cluster 2 Stream b >3 4 Stream b, cluster Stream b, cluster 1 5 END Stream b, cluster 2 Free Space >6 7 Free 7 11 Free Stream c >8 12 Stream c, cluster Stream a, cluster 3 10 END Stream a, cluster Free Stream c, cluster 1 13 END Stream c, cluster Free Stream d >15 16 Stream d, cluster Stream d, cluster Stream d, cluster Stream d, cluster 3...

J.Tiberghien UNIX Inode Logical clusters of data on disk (up to 256) Logical clusters of data on disk (up to 256*256) Logical clusters of data on disk Logical clusters of data on disk (up to 256*256*256)

J.Tiberghien VCN to LCN mapping in MS/NT starting VCN starting LCN no.of clusters VCN= LCN=

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien Directory Tree \ info ex 1k 2kasti 3E \info\ex\3E

J.Tiberghien MS/DOS Directory Entry bit 0: read only bit 1: hidden bit 2: system file bit 3: volume label bit 4: subdirectory bit 5: archive bit Base Name Extension Attributes Time of creation Date of creation Starting FAT entry File size 8 bytes 3 bytes 1 byte 2 bytes 4 bytes

J.Tiberghien Unix Directories \ info ex 3E \info\ex\3E txt \txt\new new

J.Tiberghien MS/NT Master File Table Security Descriptor File Name Standard Information Data 1,2 or 4 KBytes

J.Tiberghien MS/NT Data Files Security Descriptor File Name Standard Information Actual Data Security Descriptor File Name Standard Information VCN to LCN mappings Small file: Large file: VCN= LCN=

J.Tiberghien MS/NT Directories Security Descriptor File Name Standard Information Index of files in MFT f1,f2,f3 Small directory: Large directory (organized as a Btree): Security Descriptor File Name Standard Information VCN to LCN mappings + bitmap VCN= LCN= f1f2f4f5 f6 f3f f8f9

J.Tiberghien Disk organization & File Management Physical data recording on magnetic disks Physical organization of data on magnetic disks Logical disk organization –Contiguous blocks –Random blocks: MS/DOS, UNIX, MS/NT Directories System Calls

J.Tiberghien System Calls File Manipulation create file, delete file open, close read, write, reposition get file attributes, set file attributes