Class NfsPreOpAttributes

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

public class NfsPreOpAttributes extends Object
These pre-operation attributes are part of weak cache consistency data, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new structure from the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the time when the attributes of the file were last changed.
    Returns the time when the file data was last modified.
    long
    Returns the number of bytes of disk space that the file actually uses (which can be smaller than the size because the file may have holes or it may be larger due to fragmentation).

    Methods inherited from class Object

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

    • NfsPreOpAttributes

      public NfsPreOpAttributes(Xdr xdr)
      Creates a new structure from the Xdr response, as specified by RFC 1813 (https://tools.ietf.org/html/rfc1813).
  • Method Details

    • getSize

      public long getSize()
      Returns the number of bytes of disk space that the file actually uses (which can be smaller than the size because the file may have holes or it may be larger due to fragmentation).
    • getMTime

      public NfsTime getMTime()
      Returns the time when the file data was last modified.
    • getCTime

      public NfsTime getCTime()
      Returns the time when the attributes of the file were last changed. Writing to the file changes the ctime in addition to the mtime.