CSE 124 Lecture Notes - Lecture 9: European Cooperation In Science And Technology, Cache Coherence, File Locking

56 views3 pages

Document Summary

Want higher-level abstractions like directories, files, links, etc. Make a remote file system look local . Mount remote fs (host:path) as local directories. Nfs client - intercepts system calls and handles these (read,write,open,close, etc. ) Remote os will use the correct fs and sends response back through the nfs server, through the socket, and back to the client. Vfs / local fs fd = open ( path , flags) read (fd, buf, n) - reads n bytes of data write (fd, buf, n) Implicit pointer to the offset of the file where we finished reading. Essentially duplicating it (2*n bytes contain 2 copies of the file!) close (fd) Server maintains state that maps fd to inode , offset. Stateless nfs: strawman 1 fd = open( path , flags) read( path , buf, n) write( path , offset, buf, n) close(fd) Strawman 2 read( path , offset , buf, n) write( path, offset , buf, n)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers