OperatingSystemsChapter 9, part2File System Layout
Operating Systems Chapter 9, part2 File System Layout 1
OutlineQuestions.operations.CanIread back what I've written?·CanIgetbackfreespacewhenIremoveafile?·How much spaceis consumed whenIcreatea1GBfile?You'regiven a disk of 1TB space.How to utilize it?AllocatedFilecontent&DirectorySpaceattributesFreeSpaceThings needtobestored
2 Outline You’re given a disk of 1TB space. How to utilize it? Allocated Space Free Space File content & Directory attributes Things need to be stored. operations Questions. • Can I read back what I’ve written? • Can I get back free space when I remove a file? • How much space is consumed when I create a 1GB file?
Outline: We briefly introduce the evolution of the file systemlayout:- From a dummy way to advanced ways- The pros and cons are covered.: We begin to look at some details of the FAT filesystem and EXT file system3
3 Outline • We briefly introduce the evolution of the file system layout: – From a dummy way to advanced ways. – The pros and cons are covered. • We begin to look at some details of the FAT file system and EXT file system
How to store data? Consider the following case:- You are going to design the layout of a FS. You are given the freedom to choose the locationsto store files, including directory files- How will you organize the data?100GB04
4 How to store data? • Consider the following case: – You are going to design the layout of a FS. – You are given the freedom to choose the locations to store files, including directory files. – How will you organize the data? 0 100GB
How to store data?Some (basic) rules are required:- Every data written to the device must be able to be retrieved. Would you use the FS that will lose data randomly?-Every FS operation should be done as efficient as possible. Would you use the FS if it takes a minute to retrieve several bytes ofdata?Whenafileisremoved,theFS shouldfreethecorresponding space.. Would you use the Fs if it cannot free any occupied space?100GB05
5 How to store data? • Some (basic) rules are required: – Every data written to the device must be able to be retrieved. • Would you use the FS that will lose data randomly? – Every FS operation should be done as efficient as possible. • Would you use the FS if it takes a minute to retrieve several bytes of data? – When a file is removed, the FS should free the corresponding space. • Would you use the FS if it cannot free any occupied space? 0 100GB