Esempio n. 1
0
        public void xdrEncode(XdrEncodingStream xdr)
        {
            xdr.xdrEncodeInt(resop);
            switch (resop)
            {
                case nfs_opnum4.OP_ACCESS:
                    opaccess.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_CLOSE:
                    opclose.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_COMMIT:
                    opcommit.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_CREATE:
                    opcreate.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_DELEGPURGE:
                    opdelegpurge.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_DELEGRETURN:
                    opdelegreturn.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_GETATTR:
                    opgetattr.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_GETFH:
                    opgetfh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LINK:
                    oplink.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LOCK:
                    oplock.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LOCKT:
                    oplockt.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LOCKU:
                    oplocku.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LOOKUP:
                    oplookup.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LOOKUPP:
                    oplookupp.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_NVERIFY:
                    opnverify.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_OPEN:
                    opopen.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_OPENATTR:
                    opopenattr.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_OPEN_CONFIRM:
                    opopen_confirm.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_OPEN_DOWNGRADE:
                    opopen_downgrade.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_PUTFH:
                    opputfh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_PUTPUBFH:
                    opputpubfh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_PUTROOTFH:
                    opputrootfh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_READ:
                    opread.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_READDIR:
                    opreaddir.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_READLINK:
                    opreadlink.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_REMOVE:
                    opremove.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_RENAME:
                    oprename.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_RENEW:
                    oprenew.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_RESTOREFH:
                    oprestorefh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SAVEFH:
                    opsavefh.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SECINFO:
                    opsecinfo.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SETATTR:
                    opsetattr.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SETCLIENTID:
                    opsetclientid.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SETCLIENTID_CONFIRM:
                    opsetclientid_confirm.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_VERIFY:
                    opverify.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_WRITE:
                    opwrite.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_RELEASE_LOCKOWNER:
                    oprelease_lockowner.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_BACKCHANNEL_CTL:
                    opbackchannel_ctl.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_BIND_CONN_TO_SESSION:
                    opbind_conn_to_session.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_EXCHANGE_ID:
                    opexchange_id.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_CREATE_SESSION:
                    opcreate_session.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_DESTROY_SESSION:
                    opdestroy_session.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_FREE_STATEID:
                    opfree_stateid.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_GET_DIR_DELEGATION:
                    opget_dir_delegation.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_GETDEVICEINFO:
                    opgetdeviceinfo.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_GETDEVICELIST:
                    opgetdevicelist.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LAYOUTCOMMIT:
                    oplayoutcommit.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LAYOUTGET:
                    oplayoutget.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_LAYOUTRETURN:
                    oplayoutreturn.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SECINFO_NO_NAME:
                    opsecinfo_no_name.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SEQUENCE:
                    opsequence.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_SET_SSV:
                    opset_ssv.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_TEST_STATEID:
                    optest_stateid.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_WANT_DELEGATION:
                    opwant_delegation.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_DESTROY_CLIENTID:
                    opdestroy_clientid.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_RECLAIM_COMPLETE:
                    opreclaim_complete.xdrEncode(xdr);
                    break;

                case nfs_opnum4.OP_ILLEGAL:
                    opillegal.xdrEncode(xdr);
                    break;
            }
        }