internal Nfs3WeakCacheConsistency(XdrDataReader reader) { if (reader.ReadBool()) { Before = new Nfs3WeakCacheConsistencyAttr(reader); } if (reader.ReadBool()) { After = new Nfs3FileAttributes(reader); } }
public Nfs3PathConfResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); ObjectAttributes = new Nfs3FileAttributes(reader); if (Status == Nfs3Status.Ok) { LinkMax = reader.ReadUInt32(); NameMax = reader.ReadUInt32(); NoTrunc = reader.ReadBool(); ChownRestricted = reader.ReadBool(); CaseInsensitive = reader.ReadBool(); CasePreserving = reader.ReadBool(); } }
internal Nfs3ReadResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { FileAttributes = new Nfs3FileAttributes(reader); } if (Status == Nfs3Status.Ok) { Count = reader.ReadInt32(); Eof = reader.ReadBool(); Data = reader.ReadBuffer(); } }
internal Nfs3DirectoryEntry(XdrDataReader reader) { FileId = reader.ReadUInt64(); Name = reader.ReadString(); Cookie = reader.ReadUInt64(); if (reader.ReadBool()) { FileAttributes = new Nfs3FileAttributes(reader); } if (reader.ReadBool()) { FileHandle = new Nfs3FileHandle(reader); } }
internal Nfs3LookupResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (Status == Nfs3Status.Ok) { ObjectHandle = new Nfs3FileHandle(reader); if (reader.ReadBool()) { ObjectAttributes = new Nfs3FileAttributes(reader); } } if (reader.ReadBool()) { DirAttributes = new Nfs3FileAttributes(reader); } }
internal Nfs3ExportResult(XdrDataReader reader) { Exports = new List <Nfs3Export>(); while (reader.ReadBool()) { Exports.Add(new Nfs3Export(reader)); } }
internal Nfs3CreateResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (Status == Nfs3Status.Ok) { if (reader.ReadBool()) { FileHandle = new Nfs3FileHandle(reader); } if (reader.ReadBool()) { FileAttributes = new Nfs3FileAttributes(reader); } } CacheConsistency = new Nfs3WeakCacheConsistency(reader); }
internal Nfs3AccessResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { ObjectAttributes = new Nfs3FileAttributes(reader); } Access = (Nfs3AccessPermissions)reader.ReadInt32(); }
internal Nfs3Export(XdrDataReader reader) { DirPath = reader.ReadString(Nfs3Mount.MaxPathLength); List<string> groups = new List<string>(); while (reader.ReadBool()) { groups.Add(reader.ReadString(Nfs3Mount.MaxNameLength)); } Groups = groups; }
public Nfs3ReadDirPlusResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { DirAttributes = new Nfs3FileAttributes(reader); } if (Status == Nfs3Status.Ok) { CookieVerifier = reader.ReadBytes(Nfs3.CookieVerifierSize); DirEntries = new List <Nfs3DirectoryEntry>(); while (reader.ReadBool()) { Nfs3DirectoryEntry dirEntry = new Nfs3DirectoryEntry(reader); DirEntries.Add(dirEntry); } Eof = reader.ReadBool(); } }
internal Nfs3Export(XdrDataReader reader) { DirPath = reader.ReadString(Nfs3Mount.MaxPathLength); List <string> groups = new List <string>(); while (reader.ReadBool()) { groups.Add(reader.ReadString(Nfs3Mount.MaxNameLength)); } Groups = groups; }
public Nfs3ReadDirPlusResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { DirAttributes = new Nfs3FileAttributes(reader); } if (Status == Nfs3Status.Ok) { CookieVerifier = reader.ReadBytes(Nfs3.CookieVerifierSize); DirEntries = new List<Nfs3DirectoryEntry>(); while (reader.ReadBool()) { Nfs3DirectoryEntry dirEntry = new Nfs3DirectoryEntry(reader); DirEntries.Add(dirEntry); } Eof = reader.ReadBool(); } }
internal Nfs3FileSystemStatResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { PostOpAttributes = new Nfs3FileAttributes(reader); } if (Status == Nfs3Status.Ok) { FileSystemStat = new Nfs3FileSystemStat(reader); } }
public Nfs3SetAttributes(XdrDataReader reader) { SetMode = reader.ReadBool(); if (SetMode) { Mode = (UnixFilePermissions)reader.ReadInt32(); } SetUid = reader.ReadBool(); if (SetUid) { Uid = reader.ReadUInt32(); } SetGid = reader.ReadBool(); if (SetGid) { Gid = reader.ReadUInt32(); } SetSize = reader.ReadBool(); if (SetSize) { Size = reader.ReadInt64(); } SetAccessTime = (Nfs3SetTimeMethod)reader.ReadInt32(); if (SetAccessTime == Nfs3SetTimeMethod.ClientTime) { AccessTime = new Nfs3FileTime(reader); } SetModifyTime = (Nfs3SetTimeMethod)reader.ReadInt32(); if (SetModifyTime == Nfs3SetTimeMethod.ClientTime) { ModifyTime = new Nfs3FileTime(reader); } }
public Nfs3ReadDirResult(XdrDataReader reader) { Status = (Nfs3Status)reader.ReadInt32(); if (reader.ReadBool()) { DirAttributes = new Nfs3FileAttributes(reader); } DirEntries = new List <Nfs3DirectoryEntry>(); if (Status == Nfs3Status.Ok) { CookieVerifier = reader.ReadUInt64(); while (reader.ReadBool()) { DirEntries.Add(new Nfs3DirectoryEntry(reader)); } Eof = reader.ReadBool(); } }