Download presentation
Presentation is loading. Please wait.
1
File-System Implementation
Michael Thomsen Jim Ford-Fleming
2
File-System Structure
Cluster Access Table Mounted Image Cluster Status 512 Byte Cluster 1 … 2 … 3 … 4 … 5 … 6 … 7 … 8 … … … With a fixed data cluster size of 512 bytes, we can apply the following formula, using the access table status locations, to determine the address of the cluster in the mounted image. Address = n * 512
3
Cluster Structure 512 Byte Cluster Filename (12 Bytes) Data Section
* Each Cluster needs a pointer to the next since this is an Indexed File System Pointer to Next Cluster (20 Bytes)
4
Implemented Functions
Close Closes the specified file Create File Creates a file Delete Deletes a file Find Free Cluster Finds the next free cluster Mount Mounts an image Open Opens the specified file Read Reads a file Unmount Unmounts the image Write Writes to a cluster
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.