02 NFS
02 NFS
➢Distributed file systems allow multiple processes to share data over long
periods of time in a secure and reliable way.
• NFS comes with a communication protocol that allows clients to access the
files stored on a server.
✓This model is therefore also referred to as the remote access model. It is shown in Fig.
➢ In the upload/download model a client accesses a file locally
➢When the client is finished with the file, it is uploaded back to the
server again so that it can be used by another client.
➢ Example the Internet's FTP service
NFS - System Architecture
➢ Virtual File System (VFS) acts as an interface between the operating system’s system call
layer and all file systems on a node.
➢ The calls go to the VFS layer, which passes them either to a local file system or to the
NFS client.
➢ VFS is used today on virtually all operating systems as the interface to different local and
distributed file systems.
NFS, for UNIX system, is generally implemented following the layered architecture shown in
Fig.
➢ Client process issues file system request via system call to VFS
➢ At the server: an RPC server stub receives the request, “un-marshalls” the
parameters & passes them to the NFS server, which creates a request to the
server’s VFS layer.
➢ The VFS layer performs the operation on the local file system and the results
are passed back to the client.
• NFS implements a file system model that is almost identical to a UNIX
system.
• Implements most file operations that UNIX supports
• Some differences between NFSv3 and NFSv4 are below.