Class NfsPosixAttributes

java.lang.Object
com.emc.ecs.nfsclient.nfs.NfsPosixAttributes

public class NfsPosixAttributes extends Object
Holder for the Posix attributes returned by the Pathconf RPC call, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the maximum number of hard links to an object.
    long
    Returns the maximum length of a component of a filename.
    boolean
    Returns true if the server file system does not distinguish case when interpreting filenames.
    boolean
    Returns true if the server file system will preserve the case of a name during a CREATE, MKDIR, MKNOD, SYMLINK, RENAME, or LINK operation.
    boolean
    Returns true if the server will reject any request to change either the owner or the group associated with a file if the caller is not the privileged user (uid 0).
    boolean
    Returns true if the properties have been loaded from NFS server data.
    boolean
    Returns true if the server will reject any request that includes a name longer than getNameMaximum() with the error, NFS3ERR_NAMETOOLONG.
    void
    Reads the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • NfsPosixAttributes

      public NfsPosixAttributes()
  • Method Details

    • unmarshalling

      public void unmarshalling(Xdr xdr)
      Reads the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
    • isLoaded

      public boolean isLoaded()
      Returns
      • true if the properties have been loaded from NFS server data.
      • false otherwise.
      .
    • getLinkMaximum

      public long getLinkMaximum()
      Returns the maximum number of hard links to an object.
    • getNameMaximum

      public long getNameMaximum()
      Returns the maximum length of a component of a filename.
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      Returns
      • true if the server file system does not distinguish case when interpreting filenames.
      • false otherwise.
      .
    • isCasePreserving

      public boolean isCasePreserving()
      Returns
      • true if the server file system will preserve the case of a name during a CREATE, MKDIR, MKNOD, SYMLINK, RENAME, or LINK operation.
      • false otherwise.
      .
    • isChownRestricted

      public boolean isChownRestricted()
      Returns
      • true if the server will reject any request to change either the owner or the group associated with a file if the caller is not the privileged user (uid 0).
      • false otherwise.
      .
    • isNoTruncation

      public boolean isNoTruncation()
      Returns
      • true if the server will reject any request that includes a name longer than getNameMaximum() with the error, NFS3ERR_NAMETOOLONG.
      • false if any length name over getNameMaximum() bytes will be silently truncated to getNameMaximum() bytes.
      .
    • toString

      public String toString()
      Overrides:
      toString in class Object