Class NfsRenameResponse

Direct Known Subclasses:
Nfs3RenameResponse

public class NfsRenameResponse extends NfsResponseBase
The response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

Procedure RENAME renames the file identified by name in the directory, fileHandle, to toName in the directory, toFileHandle. The operation is required to be atomic to the client. toFileHandle and fileHandle must reside on the same file system and server.

  • Constructor Details

    • NfsRenameResponse

      public NfsRenameResponse(int nfsVersion)
      Creates the response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

      Procedure RENAME renames the file identified by name in the directory, fileHandle, to toName in the directory, toFileHandle. The operation is required to be atomic to the client. toFileHandle and fileHandle must reside on the same file system and server.

      Parameters:
      nfsVersion - The NFS version number. This is ignored for now, as only NFSv3 is supported, but is included to allow future support for other versions.
  • Method Details

    • unmarshalling

      public void unmarshalling(Xdr xdr) throws RpcException
      Load this structure from the response data, as specified by RFC 1831 (https://tools.ietf.org/html/rfc1831).
      Overrides:
      unmarshalling in class NfsResponseBase
      Parameters:
      xdr - The xdr response data.
      Throws:
      RpcException
    • getFromDirectoryWccData

      public NfsWccData getFromDirectoryWccData()
      Returns the weak consistency data for the from directory.
    • getToDirectoryWccData

      public NfsWccData getToDirectoryWccData()
      Returns the weak consistency data for the to directory.