/// <exception cref="System.IO.IOException"/> public static Org.Apache.Hadoop.Nfs.Nfs3.Request.MKNOD3Request Deserialize(XDR xdr ) { FileHandle handle = ReadHandle(xdr); string name = xdr.ReadString(); int type = xdr.ReadInt(); SetAttr3 objAttr = new SetAttr3(); Nfs3FileAttributes.Specdata3 spec = null; if (type == NfsFileType.Nfschr.ToValue() || type == NfsFileType.Nfsblk.ToValue()) { objAttr.Deserialize(xdr); spec = new Nfs3FileAttributes.Specdata3(xdr.ReadInt(), xdr.ReadInt()); } else { if (type == NfsFileType.Nfssock.ToValue() || type == NfsFileType.Nfsfifo.ToValue( )) { objAttr.Deserialize(xdr); } } return(new Org.Apache.Hadoop.Nfs.Nfs3.Request.MKNOD3Request(handle, name, type, objAttr , spec)); }
public MKNOD3Request(FileHandle handle, string name, int type, SetAttr3 objAttr, Nfs3FileAttributes.Specdata3 spec) : base(handle) { this.name = name; this.type = type; this.objAttr = objAttr; this.spec = spec; }