Class NfsLinkRequest

All Implemented Interfaces:
NfsRequest
Direct Known Subclasses:
Nfs3LinkRequest

public class NfsLinkRequest extends NfsRequestBase
The request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

Procedure LINK creates a hard link from fileHandle to name, in the directory, parentDirectoryFileHandle. fileHandle and parentDirectoryFileHandle must reside on the same file system and server.

  • Constructor Details

    • NfsLinkRequest

      public NfsLinkRequest(byte[] fileHandle, byte[] parentDirectoryFileHandle, String name, Credential credential, int nfsVersion) throws FileNotFoundException
      Creates the request, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

      Procedure LINK creates a hard link from fileHandle to name, in the directory, parentDirectoryFileHandle. fileHandle and parentDirectoryFileHandle must reside on the same file system and server.

      Parameters:
      fileHandle - The file handle for the existing file system object.
      parentDirectoryFileHandle - The file handle for the directory in which the link is to be created.
      name - The name that is to be associated with the created link.
      credential - The credential used for RPC authentication.
      nfsVersion - The NFS version number
      Throws:
      FileNotFoundException
  • Method Details