CPSC 410 / 611 : Operating Systems 1
CPSC 410/611: “Final Week” -- File Systems
- File Systems over a Networks: Sun NFS
CPSC 410/611: Final Week -- File Systems File Systems over a - - PDF document
CPSC 410 / 611 : Operating Systems CPSC 410/611: Final Week -- File Systems File Systems over a Networks: Sun NFS Aspects of Distributed File Systems Communication Processes Naming Synchronization Fault Tolerance Caching and
file1 file2 file pos file location file location file pos process open-file table file1 file2 file pos file pos system open-file table
file pos ... ... file pos
system call layer virtual file system layer (v-nodes) local operating system (i-nodes) For example: Linux Virtual File System (VFS)
(separates from implementation)
for files (needed for network file systems. Supports inode objects (individual files), fi file
systems), dentry objects (individual directory entries)
system call layer virtual file system layer (v-nodes) virtual file system layer local operating system (i-nodes) local file system interface client server system call layer
system call layer virtual file system layer (v-nodes) virtual file system layer local operating system (i-nodes) local file system interface client server NFS client (r-nodes)
RPC client stub RPC server stub
NFS server system call layer
– Whenever file cached, timestamp of last modification on server is cached as well. – Validation: Client requests latest timestamp from server (getattributes), and compares against local timestamp. If fails, all blocks are invalidated.
– at file open – whenever server contacted to get new block – after timeout (3s for file blocks, 30s for directories)
– block marked dirty and scheduled for flushing. – flushing: when file is closed, or a sync occurs at client.
– delay between write and flush – time to next cache validation