SlideShare a Scribd company logo
Chapter 12: File System Implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
File-System Structure ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Layered File System
A Typical File Control Block
In-Memory File System Structures ,[object Object],[object Object],[object Object]
In-Memory File System Structures
Virtual File Systems ,[object Object],[object Object],[object Object]
Schematic View of Virtual File System
Directory Implementation ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Allocation Methods ,[object Object],[object Object],[object Object],[object Object]
Contiguous Allocation ,[object Object],[object Object],[object Object],[object Object],[object Object]
Contiguous Allocation of Disk Space
Extent-Based Systems ,[object Object],[object Object],[object Object]
Linked Allocation ,[object Object],pointer block  =
Linked Allocation (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],LA/511 Q R
Linked Allocation
File-Allocation Table
Indexed Allocation ,[object Object],[object Object],index table
Example of Indexed Allocation
Indexed Allocation (Cont.) ,[object Object],[object Object],[object Object],[object Object],LA/512 Q R Q = displacement into index table R = displacement into block
Indexed Allocation – Mapping (Cont.) ,[object Object],[object Object],LA / (512 x 511) Q 1 R 1 ,[object Object],[object Object],R 1  / 512 Q 2 R 2 ,[object Object],[object Object]
Indexed Allocation – Mapping (Cont.) ,[object Object],LA / (512 x 512) Q 1 R 1 ,[object Object],[object Object],R 1  / 512 Q 2 R 2 ,[object Object],[object Object]
Indexed Allocation – Mapping (Cont.)  outer-index index table file
Combined Scheme:  UNIX (4K bytes per block)
Free-Space Management ,[object Object],… 0 1 2 n-1 bit[ i ] =  0    block[ i ] free 1    block[ i ] occupied Block number calculation (number of bits per word) * (number of 0-value words) + offset of first 1 bit
Free-Space Management (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Free-Space Management (Cont.) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Linked Free Space List on Disk
Efficiency and Performance ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Various Disk-Caching Locations
Page Cache ,[object Object],[object Object],[object Object],[object Object]
I/O Without a Unified Buffer Cache
Unified Buffer Cache ,[object Object]
I/O Using a Unified Buffer Cache
Recovery ,[object Object],[object Object],[object Object]
Log Structured File Systems ,[object Object],[object Object],[object Object],[object Object]
The Sun Network File System (NFS) ,[object Object],[object Object]
NFS (Cont.) ,[object Object],[object Object],[object Object],[object Object]
NFS (Cont.) ,[object Object],[object Object],[object Object]
Three Independent File Systems
Mounting in NFS  Mounts Cascading mounts
NFS Mount Protocol ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
NFS Protocol ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Three Major Layers of NFS Architecture  ,[object Object],[object Object],[object Object],[object Object],[object Object]
Schematic View of NFS Architecture
NFS Path-Name Translation ,[object Object],[object Object]
NFS Remote Operations ,[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

File management
File managementFile management
File management
Mohd Arif
 
Os10
Os10Os10
Os10
issbp
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File System
Milad Sobhkhiz
 

What's hot (19)

File Systems
File SystemsFile Systems
File Systems
 
OSCh11
OSCh11OSCh11
OSCh11
 
8 0-os file-system management
8 0-os file-system management8 0-os file-system management
8 0-os file-system management
 
10 File System
10 File System10 File System
10 File System
 
File system
File systemFile system
File system
 
File management
File managementFile management
File management
 
Chapter 10 - File System Interface
Chapter 10 - File System InterfaceChapter 10 - File System Interface
Chapter 10 - File System Interface
 
directory structure and file system mounting
directory structure and file system mountingdirectory structure and file system mounting
directory structure and file system mounting
 
File systemimplementationfinal
File systemimplementationfinalFile systemimplementationfinal
File systemimplementationfinal
 
Os10
Os10Os10
Os10
 
Contigious
ContigiousContigious
Contigious
 
Forensic artifacts in modern linux systems
Forensic artifacts in modern linux systemsForensic artifacts in modern linux systems
Forensic artifacts in modern linux systems
 
Buffer cache unix ppt Mrs.Sowmya Jyothi
Buffer cache unix ppt Mrs.Sowmya JyothiBuffer cache unix ppt Mrs.Sowmya Jyothi
Buffer cache unix ppt Mrs.Sowmya Jyothi
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849Filesystemimplementationpre final-160919095849
Filesystemimplementationpre final-160919095849
 
NTFS and Inode
NTFS and InodeNTFS and Inode
NTFS and Inode
 
Unit ivos - file systems
Unit ivos - file systemsUnit ivos - file systems
Unit ivos - file systems
 
Hadoop Distributed File System
Hadoop Distributed File SystemHadoop Distributed File System
Hadoop Distributed File System
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 

Viewers also liked (9)

Digitally preserving a submerged Bronze Age city - The Povlopetri Underwater ...
Digitally preserving a submerged Bronze Age city - The Povlopetri Underwater ...Digitally preserving a submerged Bronze Age city - The Povlopetri Underwater ...
Digitally preserving a submerged Bronze Age city - The Povlopetri Underwater ...
 
OS_Ch2
OS_Ch2OS_Ch2
OS_Ch2
 
West Coast Palaeolandscapes (1 of 2)
West Coast Palaeolandscapes (1 of 2)West Coast Palaeolandscapes (1 of 2)
West Coast Palaeolandscapes (1 of 2)
 
Placebooks
PlacebooksPlacebooks
Placebooks
 
OS_Ch18
OS_Ch18OS_Ch18
OS_Ch18
 
West Coast Palaeolandscapes (2 of 2)
West Coast Palaeolandscapes (2 of 2)West Coast Palaeolandscapes (2 of 2)
West Coast Palaeolandscapes (2 of 2)
 
OS_Ch6
OS_Ch6OS_Ch6
OS_Ch6
 
OS_Ch16
OS_Ch16OS_Ch16
OS_Ch16
 
OS_Ch4
OS_Ch4OS_Ch4
OS_Ch4
 

Similar to OS_Ch12

Distributed File System
Distributed File SystemDistributed File System
Distributed File System
Ntu
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
mcganesh
 

Similar to OS_Ch12 (20)

Ch11
Ch11Ch11
Ch11
 
file management_part2_os_notes.ppt
file management_part2_os_notes.pptfile management_part2_os_notes.ppt
file management_part2_os_notes.ppt
 
File system interfacefinal
File system interfacefinalFile system interfacefinal
File system interfacefinal
 
File System operating system operating system
File System  operating system operating systemFile System  operating system operating system
File System operating system operating system
 
File Management.ppt
File Management.pptFile Management.ppt
File Management.ppt
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
 
I/O System and Case study
I/O System and Case studyI/O System and Case study
I/O System and Case study
 
Distributed File System
Distributed File SystemDistributed File System
Distributed File System
 
Chapter13
Chapter13Chapter13
Chapter13
 
XFS.ppt
XFS.pptXFS.ppt
XFS.ppt
 
File Management in Operating Systems
File Management in Operating SystemsFile Management in Operating Systems
File Management in Operating Systems
 
linux file sysytem& input and output
linux file sysytem& input and outputlinux file sysytem& input and output
linux file sysytem& input and output
 
Ch11 file system implementation
Ch11   file system implementationCh11   file system implementation
Ch11 file system implementation
 
AliEnFS - A Linux File System For The AliEn Grid Services
AliEnFS - A Linux File System For The AliEn Grid ServicesAliEnFS - A Linux File System For The AliEn Grid Services
AliEnFS - A Linux File System For The AliEn Grid Services
 
File systeminterface-pre-final-formatting
File systeminterface-pre-final-formattingFile systeminterface-pre-final-formatting
File systeminterface-pre-final-formatting
 
File system interface Pre Final
File system interface Pre FinalFile system interface Pre Final
File system interface Pre Final
 
OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)OS_Assignment for Disk Space & File System & File allocation table(FAT)
OS_Assignment for Disk Space & File System & File allocation table(FAT)
 
The Storage Systems
The Storage Systems The Storage Systems
The Storage Systems
 
Unit 3 chapter 1-file management
Unit 3 chapter 1-file managementUnit 3 chapter 1-file management
Unit 3 chapter 1-file management
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 

More from Supriya Shrivastava (15)

OS_Ch17
OS_Ch17OS_Ch17
OS_Ch17
 
OS_Ch19
OS_Ch19OS_Ch19
OS_Ch19
 
OS_Ch15
OS_Ch15OS_Ch15
OS_Ch15
 
OS_Ch14
OS_Ch14OS_Ch14
OS_Ch14
 
OS_Ch13
OS_Ch13OS_Ch13
OS_Ch13
 
OS_Ch11
OS_Ch11OS_Ch11
OS_Ch11
 
OS_Ch10
OS_Ch10OS_Ch10
OS_Ch10
 
OS_Ch7
OS_Ch7OS_Ch7
OS_Ch7
 
OS_Ch9
OS_Ch9OS_Ch9
OS_Ch9
 
OS_Ch8
OS_Ch8OS_Ch8
OS_Ch8
 
OS_Ch21
OS_Ch21OS_Ch21
OS_Ch21
 
OS_Ch20
OS_Ch20OS_Ch20
OS_Ch20
 
OS_Ch3
OS_Ch3OS_Ch3
OS_Ch3
 
OS_Ch1
OS_Ch1OS_Ch1
OS_Ch1
 
OS_Ch5
OS_Ch5OS_Ch5
OS_Ch5
 

Recently uploaded

Recently uploaded (20)

What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
The architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdfThe architecture of Generative AI for enterprises.pdf
The architecture of Generative AI for enterprises.pdf
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
Optimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through ObservabilityOptimizing NoSQL Performance Through Observability
Optimizing NoSQL Performance Through Observability
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Agentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdfAgentic RAG What it is its types applications and implementation.pdf
Agentic RAG What it is its types applications and implementation.pdf
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 

OS_Ch12