CASE STUDY SUN NFS - VFS, 
ACCESS CONTROL, NFS SERVER 
INTERFACE, PATH NAME 
TRANSLATION, MOUNT SERVICE 
Shashwat Singh 
IT-B 
Roll no :- 21
Case Study SUN NFS - VFS 
 The Sun Network Filesystem (NFS) 
provides transparent, remote access to 
filesystems. 
 Unlike many other remote filesystem implementations under UNIX, NFS 
is designed to be easily portable to other operating systems and machine 
architectures. 
 The NFS client and server modules communicate using remote procedure 
calling. 
 The overall design goals of NFS were :- 
 Machine and Operating System Independence 
 Crash Recovery 
 Transparent Access
Case Study SUN NFS - VFS 
 Virtual File System (VFS) interface defines 
the operations that can be done on a 
filesystem 
 The virtual file system layer has one VFS structure 
for each mounted file system and one v-node per 
open file. 
 A VFS structure relates a remote file system to the 
local directory on which it is mounted. 
 The v-node contains an indicator to show whether a 
file is local or remote.
Access Control 
 NFS server is stateless and does not keep files 
open on behalf of clients . 
 Therefore, server must check the user’s 
identity against the file’s access permission 
attributes on each request , to see whether the 
user is permitted to access the file in the 
manner requested. 
 The Sun RPC protocol requires clients to send 
user authentication information with each 
request and this is checked against the access 
permission in the file attributes.
NFS server Interface 
 The file and directory operations are integrated in 
a single service; the creation and insertion of file 
names in directories is performed by a single 
create operations. 
 The other NFS operation on directories are 
create, remove, link, symlink, readlink, mkdir, 
rmdir, readdir and statfs. 
 They resemble their UNIX counterparts with the 
exception of readdir , which provides a 
representation-independent method for reading 
the contents of directories, and statfs, which gives 
the status information on remote file systems.
Mount Service 
 The mounting of sub-trees of remote 
filesystems by clients is supported by a 
separate mount service process that runs at 
user level on each NFS server computer . 
 On each server , there is a file with a well-known name (/etc/exports) 
containing the names of local filesystems that are available for remote 
mounting . 
 An access list is associated with each filesystems name indicating which 
hosts are permitted to mount the filesystem .
Path name translation 
 In NFS, pathnames cannot be translated at a server, 
because the name may cross a ‘mount point’ at the 
client. 
 So pathnames are parsed, and their translation is 
performed in a iterative manner by the clients. 
 The lookup operation looks for a single part of a 
pathname in a given directory and returns the 
corresponding file handle and file attributes. The file 
handle returned in the previous step is used as a 
parameter in the next lookup step.
THANK YOU

Sun NFS , Case study

  • 1.
    CASE STUDY SUNNFS - VFS, ACCESS CONTROL, NFS SERVER INTERFACE, PATH NAME TRANSLATION, MOUNT SERVICE Shashwat Singh IT-B Roll no :- 21
  • 2.
    Case Study SUNNFS - VFS  The Sun Network Filesystem (NFS) provides transparent, remote access to filesystems.  Unlike many other remote filesystem implementations under UNIX, NFS is designed to be easily portable to other operating systems and machine architectures.  The NFS client and server modules communicate using remote procedure calling.  The overall design goals of NFS were :-  Machine and Operating System Independence  Crash Recovery  Transparent Access
  • 3.
    Case Study SUNNFS - VFS  Virtual File System (VFS) interface defines the operations that can be done on a filesystem  The virtual file system layer has one VFS structure for each mounted file system and one v-node per open file.  A VFS structure relates a remote file system to the local directory on which it is mounted.  The v-node contains an indicator to show whether a file is local or remote.
  • 4.
    Access Control NFS server is stateless and does not keep files open on behalf of clients .  Therefore, server must check the user’s identity against the file’s access permission attributes on each request , to see whether the user is permitted to access the file in the manner requested.  The Sun RPC protocol requires clients to send user authentication information with each request and this is checked against the access permission in the file attributes.
  • 5.
    NFS server Interface  The file and directory operations are integrated in a single service; the creation and insertion of file names in directories is performed by a single create operations.  The other NFS operation on directories are create, remove, link, symlink, readlink, mkdir, rmdir, readdir and statfs.  They resemble their UNIX counterparts with the exception of readdir , which provides a representation-independent method for reading the contents of directories, and statfs, which gives the status information on remote file systems.
  • 6.
    Mount Service The mounting of sub-trees of remote filesystems by clients is supported by a separate mount service process that runs at user level on each NFS server computer .  On each server , there is a file with a well-known name (/etc/exports) containing the names of local filesystems that are available for remote mounting .  An access list is associated with each filesystems name indicating which hosts are permitted to mount the filesystem .
  • 7.
    Path name translation  In NFS, pathnames cannot be translated at a server, because the name may cross a ‘mount point’ at the client.  So pathnames are parsed, and their translation is performed in a iterative manner by the clients.  The lookup operation looks for a single part of a pathname in a given directory and returns the corresponding file handle and file attributes. The file handle returned in the previous step is used as a parameter in the next lookup step.
  • 8.

Editor's Notes

  • #2 This template can be used as a starter file for presenting training materials in a group setting. Sections Right-click on a slide to add sections. Sections can help to organize your slides or facilitate collaboration between multiple authors. Notes Use the Notes section for delivery notes or to provide additional details for the audience. View these notes in Presentation View during your presentation. Keep in mind the font size (important for accessibility, visibility, videotaping, and online production) Coordinated colors Pay particular attention to the graphs, charts, and text boxes. Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale. Graphics, tables, and graphs Keep it simple: If possible, use consistent, non-distracting styles and colors. Label all graphs and tables.
  • #3 This is another option for an Overview slides using transitions.
  • #7 This is another option for an Overview slides using transitions.
  • #9 Use a section header for each of the topics, so there is a clear transition to the audience.