public int Write(Nfs3FileHandle fileHandle, long position, byte[] buffer, int offset, int count) { Nfs3WriteResult result = _nfsClient.Write(fileHandle, position, buffer, offset, count); _cachedAttributes[fileHandle] = result.CacheConsistency.After; if (result.Status == Nfs3Status.Ok) { return(result.Count); } throw new Nfs3Exception(result.Status); }
public bool Equals(Nfs3WriteResult other) { if (other == null) { return(false); } return(other.Status == Status && object.Equals(other.CacheConsistency, CacheConsistency) && other.Count == Count && other.WriteVerifier == WriteVerifier && other.HowCommitted == HowCommitted); }