public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ca_headerpadsize = new count4(xdr); ca_maxrequestsize = new count4(xdr); ca_maxresponsesize = new count4(xdr); ca_maxresponsesize_cached = new count4(xdr); ca_maxoperations = new count4(xdr); ca_maxrequests = new count4(xdr); { int $size = xdr.xdrDecodeInt(); ca_rdma_ird = new uint32_t[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { ca_rdma_ird[$idx] = new uint32_t(xdr); } } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { ca_headerpadsize.xdrEncode(xdr); ca_maxrequestsize.xdrEncode(xdr); ca_maxresponsesize.xdrEncode(xdr); ca_maxresponsesize_cached.xdrEncode(xdr); ca_maxoperations.xdrEncode(xdr); ca_maxrequests.xdrEncode(xdr); { int $size = ca_rdma_ird.length; xdr.xdrEncodeInt($size); for ( int $idx = 0; $idx < $size; ++$idx ) { ca_rdma_ird[$idx].xdrEncode(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { offset = new offset4(xdr); count = new count4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { offset.xdrEncode(xdr); count.xdrEncode(xdr); }
public CompoundBuilder withCreatesession(clientid4 clientid, sequenceid4 sequenceid) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_CREATE_SESSION; op.opcreate_session = new CREATE_SESSION4args(); channel_attrs4 chan_attrs = new channel_attrs4(); chan_attrs.ca_headerpadsize = new count4(0); chan_attrs.ca_maxoperations = new count4(8192); chan_attrs.ca_maxrequests = new count4(8192); chan_attrs.ca_maxrequestsize = new count4(8192); chan_attrs.ca_maxresponsesize = new count4(8192); chan_attrs.ca_maxresponsesize_cached = new count4(8); chan_attrs.ca_rdma_ird = new uint32_t[0]; op.opcreate_session.csa_clientid = clientid; op.opcreate_session.csa_sequence = sequenceid; op.opcreate_session.csa_flags = new uint32_t(nfs4_prot.CREATE_SESSION4_FLAG_PERSIST); op.opcreate_session.csa_fore_chan_attrs = chan_attrs; op.opcreate_session.csa_back_chan_attrs = chan_attrs; op.opcreate_session.csa_cb_program = new uint32_t(123); op.opcreate_session.csa_sec_parms = new callback_sec_parms4[1]; op.opcreate_session.csa_sec_parms[0] = new callback_sec_parms4(); op.opcreate_session.csa_sec_parms[0].cb_secflavor = nfs4_prot.AUTH_NONE; ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { count.xdrEncode(xdr); xdr.xdrEncodeInt(committed); writeverf.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { count = new count4(xdr); committed = xdr.xdrDecodeInt(); writeverf = new verifier4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { nflh_care.xdrEncode(xdr); nflh_util.xdrEncode(xdr); nflh_stripe_count.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { nflh_care = new uint32_t(xdr); nflh_util = new nfl_util4(xdr); nflh_stripe_count = new count4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { stateid.xdrEncode(xdr); offset.xdrEncode(xdr); count.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { stateid = new stateid4(xdr); offset = new offset4(xdr); count = new count4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(gdir_status); switch ( gdir_status ) { case nfsstat.NFS_OK: gdir_resok4.xdrEncode(xdr); break; case nfsstat.NFSERR_TOOSMALL: gdir_mincount.xdrEncode(xdr); break; default: break; } }
public CompoundBuilder withRead(int count, long offset, stateid4 stateid) { READ4args args = new READ4args(); args.count = new count4(count); args.offset = new offset4(offset); args.stateid = stateid; nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_READ; op.opread = args; ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(gdla_layout_type); gdla_maxdevices.xdrEncode(xdr); gdla_cookie.xdrEncode(xdr); gdla_cookieverf.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { gdir_status = xdr.xdrDecodeInt(); switch ( gdir_status ) { case nfsstat.NFS_OK: gdir_resok4 = new GETDEVICEINFO4resok(xdr); break; case nfsstat.NFSERR_TOOSMALL: gdir_mincount = new count4(xdr); break; default: break; } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { gdia_device_id.xdrEncode(xdr); xdr.xdrEncodeInt(gdia_layout_type); gdia_maxcount.xdrEncode(xdr); gdia_notify_types.xdrEncode(xdr); }
public CompoundBuilder withReaddir(long cookie, verifier4 verifier, int dirCount, int maxcount, int... attrs) { nfs_argop4 op = new nfs_argop4(); op.opreaddir = new READDIR4args(); op.opreaddir.cookie = new nfs_cookie4(cookie); op.opreaddir.dircount = new count4(dirCount); op.opreaddir.maxcount = new count4(maxcount); op.opreaddir.attr_request = attrs.length == 0 ? new bitmap4() : bitmap4.of(attrs); op.opreaddir.cookieverf = verifier; op.argop = nfs_opnum4.OP_READDIR; ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeBoolean(loga_signal_layout_avail); xdr.xdrEncodeInt(loga_layout_type); xdr.xdrEncodeInt(loga_iomode); loga_offset.xdrEncode(xdr); loga_length.xdrEncode(xdr); loga_minlength.xdrEncode(xdr); loga_stateid.xdrEncode(xdr); loga_maxcount.xdrEncode(xdr); }