Class NfsPosixAttributes
java.lang.Object
com.emc.ecs.nfsclient.nfs.NfsPosixAttributes
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 -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the maximum number of hard links to an object.longReturns the maximum length of a component of a filename.booleanReturnstrueif the server file system does not distinguish case when interpreting filenames.booleanReturnstrueif the server file system will preserve the case of a name during a CREATE, MKDIR, MKNOD, SYMLINK, RENAME, or LINK operation.booleanReturnstrueif 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).booleanisLoaded()Returnstrueif the properties have been loaded from NFS server data.booleanReturnstrueif the server will reject any request that includes a name longer than getNameMaximum() with the error, NFS3ERR_NAMETOOLONG.toString()voidunmarshalling(Xdr xdr) Reads the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
-
Constructor Details
-
NfsPosixAttributes
public NfsPosixAttributes()
-
-
Method Details
-
unmarshalling
Reads the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813). -
isLoaded
public boolean isLoaded()Returnstrueif the properties have been loaded from NFS server data.falseotherwise.
-
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()Returnstrueif the server file system does not distinguish case when interpreting filenames.falseotherwise.
-
isCasePreserving
public boolean isCasePreserving()Returnstrueif the server file system will preserve the case of a name during a CREATE, MKDIR, MKNOD, SYMLINK, RENAME, or LINK operation.falseotherwise.
-
isChownRestricted
public boolean isChownRestricted()Returnstrueif 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).falseotherwise.
-
isNoTruncation
public boolean isNoTruncation()Returnstrueif the server will reject any request that includes a name longer than getNameMaximum() with the error, NFS3ERR_NAMETOOLONG.falseif any length name over getNameMaximum() bytes will be silently truncated to getNameMaximum() bytes.
-
toString
-