Beispiel #1
0
 public Nfs3FileAttributes(Nfs3FileAttributes other)
 {
     this.type   = other.GetType();
     this.mode   = other.GetMode();
     this.nlink  = other.GetNlink();
     this.uid    = other.GetUid();
     this.gid    = other.GetGid();
     this.size   = other.GetSize();
     this.used   = other.GetUsed();
     this.rdev   = new Nfs3FileAttributes.Specdata3();
     this.fsid   = other.GetFsid();
     this.fileId = other.GetFileId();
     this.mtime  = new NfsTime(other.GetMtime());
     this.atime  = new NfsTime(other.GetAtime());
     this.ctime  = new NfsTime(other.GetCtime());
 }
Beispiel #2
0
 public Nfs3FileAttributes(NfsFileType nfsType, int nlink, short mode, int uid, int
                           gid, long size, long fsid, long fileId, long mtime, long atime, Nfs3FileAttributes.Specdata3
                           rdev)
 {
     this.type   = nfsType.ToValue();
     this.mode   = mode;
     this.nlink  = nlink;
     this.uid    = uid;
     this.gid    = gid;
     this.size   = size;
     this.used   = this.size;
     this.rdev   = new Nfs3FileAttributes.Specdata3();
     this.fsid   = fsid;
     this.fileId = fileId;
     this.mtime  = new NfsTime(mtime);
     this.atime  = atime != 0 ? new NfsTime(atime) : this.mtime;
     this.ctime  = this.mtime;
     this.rdev   = rdev;
 }
Beispiel #3
0
 public virtual void SetRdev(Nfs3FileAttributes.Specdata3 rdev)
 {
     this.rdev = rdev;
 }