internal Nfs3FileSystemStatResult(XdrDataReader reader)
        {
            Status = (Nfs3Status)reader.ReadInt32();
            if (reader.ReadBool())
            {
                PostOpAttributes = new Nfs3FileAttributes(reader);
            }

            if (Status == Nfs3Status.Ok)
            {
                FileSystemStat = new Nfs3FileSystemStat(reader);
            }
        }
Exemplo n.º 2
0
        public bool Equals(Nfs3FileSystemStat other)
        {
            if (other == null)
            {
                return(false);
            }

            return(other.TotalSizeBytes == TotalSizeBytes &&
                   other.FreeSpaceBytes == FreeSpaceBytes &&
                   other.AvailableFreeSpaceBytes == AvailableFreeSpaceBytes &&
                   other.FileSlotCount == FileSlotCount &&
                   other.FreeFileSlotCount == FreeFileSlotCount &&
                   other.AvailableFreeFileSlotCount == AvailableFreeFileSlotCount &&
                   other.Invariant == Invariant);
        }