Class MountResponse

java.lang.Object
com.emc.ecs.nfsclient.rpc.RpcResponse
com.emc.ecs.nfsclient.mount.MountResponse

public class MountResponse extends RpcResponse
Representation of a Mount response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

Procedure MNT maps a pathname on the server to a file handle.

  • Constructor Details

    • MountResponse

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

      Procedure MNT maps a pathname on the server to a file handle.

      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 RpcResponse
      Parameters:
      xdr - The xdr response data.
      Throws:
      RpcException
    • getMountStatus

      public int getMountStatus()
      Returns a status indicator, expected to have one of the MountStatus values as below.
      • MNT3_OK = 0 (no error)
      • MNT3ERR_PERM = 1 (Not owner)
      • MNT3ERR_NOENT = 2 (No such file or directory)
      • MNT3ERR_IO = 5 (I/O error)
      • MNT3ERR_ACCES = 13 (Permission denied)
      • MNT3ERR_NOTDIR = 20 (Not a directory)
      • MNT3ERR_INVAL = 22 (Invalid argument)
      • MNT3ERR_NAMETOOLONG = 63 (Filename too long)
      • MNT3ERR_NOTSUPP = 10004 (Operation not supported)
      • MNT3ERR_SERVERFAULT = 10006 (A failure on the server)
      .
    • getRootFileHandle

      public byte[] getRootFileHandle()
      Returns the file handle for the exported directory.
    • getAuthenticationFlavors

      public int[] getAuthenticationFlavors()
      Returns the array of supported authentication flavors, as defined in RFC 1831 (https://tools.ietf.org/html/rfc1831).