示例#1
0
 public CREATE3Response(int status, FileHandle handle, Nfs3FileAttributes postOpObjAttr
                        , WccData dirWcc)
     : base(status)
 {
     this.objHandle     = handle;
     this.postOpObjAttr = postOpObjAttr;
     this.dirWcc        = dirWcc;
 }
示例#2
0
 public MKDIR3Response(int status, FileHandle handle, Nfs3FileAttributes attr, WccData
                       dirWcc)
     : base(status)
 {
     this.objFileHandle = handle;
     this.objAttr       = attr;
     this.dirWcc        = dirWcc;
 }
示例#3
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.REMOVE3Response Deserialize(XDR
                                                                                      xdr)
        {
            int     status = xdr.ReadInt();
            WccData dirWcc = WccData.Deserialize(xdr);

            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.REMOVE3Response(status, dirWcc));
        }
示例#4
0
 public MKNOD3Response(int status, FileHandle handle, Nfs3FileAttributes attrs, WccData
                       dirWcc)
     : base(status)
 {
     this.objFileHandle = handle;
     this.objPostOpAttr = attrs;
     this.dirWcc        = dirWcc;
 }
示例#5
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.SETATTR3Response Deserialize(XDR
                                                                                       xdr)
        {
            int     status  = xdr.ReadInt();
            WccData wccData = WccData.Deserialize(xdr);

            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.SETATTR3Response(status, wccData));
        }
示例#6
0
 public override XDR Serialize(XDR @out, int xid, Verifier verifier)
 {
     base.Serialize(@out, xid, verifier);
     if (dirWcc == null)
     {
         dirWcc = new WccData(null, null);
     }
     dirWcc.Serialize(@out);
     return(@out);
 }
示例#7
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.LINK3Response Deserialize(XDR xdr
                                                                                    )
        {
            int     status     = xdr.ReadInt();
            WccData fromDirWcc = WccData.Deserialize(xdr);
            WccData linkDirWcc = WccData.Deserialize(xdr);

            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.LINK3Response(status, fromDirWcc,
                                                                         linkDirWcc));
        }
示例#8
0
 public WRITE3Response(int status, WccData fileWcc, int count, Nfs3Constant.WriteStableHow
                       stableHow, long verifier)
     : base(status)
 {
     // return on both success and failure
     this.fileWcc   = fileWcc;
     this.count     = count;
     this.stableHow = stableHow;
     this.verifer   = verifier;
 }
示例#9
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.COMMIT3Response Deserialize(XDR
                                                                                      xdr)
        {
            int     status  = xdr.ReadInt();
            long    verf    = 0;
            WccData fileWcc = WccData.Deserialize(xdr);

            if (status == Nfs3Status.Nfs3Ok)
            {
                verf = xdr.ReadHyper();
            }
            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.COMMIT3Response(status, fileWcc, verf
                                                                           ));
        }
示例#10
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.MKDIR3Response Deserialize(XDR
                                                                                     xdr)
        {
            int                status        = xdr.ReadInt();
            FileHandle         objFileHandle = new FileHandle();
            Nfs3FileAttributes objAttr       = null;
            WccData            dirWcc;

            if (status == Nfs3Status.Nfs3Ok)
            {
                xdr.ReadBoolean();
                objFileHandle.Deserialize(xdr);
                xdr.ReadBoolean();
                objAttr = Nfs3FileAttributes.Deserialize(xdr);
            }
            dirWcc = WccData.Deserialize(xdr);
            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.MKDIR3Response(status, objFileHandle
                                                                          , objAttr, dirWcc));
        }
示例#11
0
 public override XDR Serialize(XDR @out, int xid, Verifier verifier)
 {
     base.Serialize(@out, xid, verifier);
     if (GetStatus() == Nfs3Status.Nfs3Ok)
     {
         @out.WriteBoolean(true);
         // Handle follows
         objHandle.Serialize(@out);
         @out.WriteBoolean(true);
         // Attributes follow
         postOpObjAttr.Serialize(@out);
     }
     if (dirWcc == null)
     {
         dirWcc = new WccData(null, null);
     }
     dirWcc.Serialize(@out);
     return(@out);
 }
示例#12
0
        public static Org.Apache.Hadoop.Nfs.Nfs3.Response.WRITE3Response Deserialize(XDR
                                                                                     xdr)
        {
            int     status  = xdr.ReadInt();
            WccData fileWcc = WccData.Deserialize(xdr);
            int     count   = 0;

            Nfs3Constant.WriteStableHow stableHow = null;
            long verifier = 0;

            if (status == Nfs3Status.Nfs3Ok)
            {
                count = xdr.ReadInt();
                int how = xdr.ReadInt();
                stableHow = Nfs3Constant.WriteStableHow.Values()[how];
                verifier  = xdr.ReadHyper();
            }
            return(new Org.Apache.Hadoop.Nfs.Nfs3.Response.WRITE3Response(status, fileWcc, count
                                                                          , stableHow, verifier));
        }
示例#13
0
 public REMOVE3Response(int status, WccData dirWcc)
     : base(status)
 {
     this.dirWcc = dirWcc;
 }
示例#14
0
 public LINK3Response(int status, WccData fromDirWcc, WccData linkDirWcc)
     : base(status)
 {
     this.fromDirWcc = fromDirWcc;
     this.linkDirWcc = linkDirWcc;
 }
示例#15
0
 public RENAME3Response(int status, WccData fromWccData, WccData toWccData)
     : base(status)
 {
     this.fromDirWcc = fromWccData;
     this.toDirWcc   = toWccData;
 }
示例#16
0
 public SETATTR3Response(int status, WccData wccData)
     : base(status)
 {
     this.wccData = wccData;
 }
示例#17
0
 public COMMIT3Response(int status, WccData fileWcc, long verf)
     : base(status)
 {
     this.fileWcc = fileWcc;
     this.verf    = verf;
 }
示例#18
0
 public RMDIR3Response(int status, WccData wccData)
     : base(status)
 {
     this.dirWcc = wccData;
 }