









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










File Sharing What kind of directory structure is needed? Key issues: Protection File systems implement some kind of protection system
A protection system dictates whether an action (read/write/execute) performed by a process/thread/user on a file should be allowed
File System Layout
File systems define a block size (e.g. 4KB) Disk space allocated in terms of blocks A “Master Block” determines location of root directory A “Free Map” keeps track of which blocks are free or allocated Usually a bitmap (How?) Stored on disk—can be cached in memory Remaining disk blocks used to store files. Disk Layout Strategies
Contiguous allocation
Contiguous allocation: Strategies Similar to VM allocation
Linked Allocation
Linked Allocation: Pros and Cons Positive: Negative:
Linked Allocation variation: FAT
FAT Benefits
Unix Inodes and Path Search
Directories are files, so inodes also describe where they are placed
To open /one user Master Block to find inode for / Open /, look for entry for one Read the inode for one into memory The inode says where first data block is on disk Read that block into memory to read file… Free-Space Management Bit Vector Linked List
Protocols Mount protocol NFS protocol Mount protocol
NFS Protocol: Remote file operations Files are manipulated remotely through Remote Procedure Calls Remote procedure calls defined for:
NFS is “Stateless”