Ejemplo n.º 1
0
    public void xdrDecode(XdrDecodingStream xdr)
 {
        eia_clientowner = new client_owner4(xdr);
        eia_flags = new uint32_t(xdr);
        eia_state_protect = new state_protect4_a(xdr);
        { int size = xdr.xdrDecodeInt(); eia_client_impl_id = new nfs_impl_id4[size]; for ( int idx = 0; idx < size; ++idx ) { eia_client_impl_id[idx] = new nfs_impl_id4(xdr); } }
    }
Ejemplo n.º 2
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     eia_clientowner = new client_owner4(xdr);
     eia_flags = new uint32_t(xdr);
     eia_state_protect = new state_protect4_a(xdr);
     { int size = xdr.xdrDecodeInt(); eia_client_impl_id = new nfs_impl_id4[size]; for (int idx = 0; idx < size; ++idx) { eia_client_impl_id[idx] = new nfs_impl_id4(xdr); } }
 }
Ejemplo n.º 3
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csr_sessionid = new sessionid4(xdr);
     csr_sequence = new sequenceid4(xdr);
     csr_flags = new uint32_t(xdr);
     csr_fore_chan_attrs = new channel_attrs4(xdr);
     csr_back_chan_attrs = new channel_attrs4(xdr);
 }
Ejemplo n.º 4
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     stateid = new stateid4(xdr);
     cinfo = new change_info4(xdr);
     rflags = new uint32_t(xdr);
     attrset = new bitmap4(xdr);
     delegation = new open_delegation4(xdr);
 }
Ejemplo n.º 5
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     { int size = xdr.xdrDecodeInt(); value = new uint32_t[size]; for (int idx = 0; idx < size; ++idx)
       {
           value[idx] = new uint32_t(xdr);
       }
     }
 }
Ejemplo n.º 6
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csr_sessionid = new sessionid4(xdr);
     csr_sequence = new sequenceid4(xdr);
     csr_flags = new uint32_t(xdr);
     csr_fore_chan_attrs = new channel_attrs4(xdr);
     csr_back_chan_attrs = new channel_attrs4(xdr);
 }
Ejemplo n.º 7
0
 public void xdrDecode(XdrDecodingStream xdr){
     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); } }
 }
Ejemplo n.º 8
0
 public void xdrDecode(XdrDecodingStream xdr)
       {
     sr_sessionid = new sessionid4(xdr);
     sr_sequenceid = new sequenceid4(xdr);
     sr_slotid = new slotid4(xdr);
     sr_highest_slotid = new slotid4(xdr);
     sr_target_highest_slotid = new slotid4(xdr);
     sr_status_flags = new uint32_t(xdr);
 }
Ejemplo n.º 9
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     seqid = new seqid4(xdr);
     share_access = new uint32_t(xdr);
     share_deny = new uint32_t(xdr);
     owner = new open_owner4(xdr);
     openhow = new openflag4(xdr);
     claim = new open_claim4(xdr);
 }
Ejemplo n.º 10
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     sr_sessionid             = new sessionid4(xdr);
     sr_sequenceid            = new sequenceid4(xdr);
     sr_slotid                = new slotid4(xdr);
     sr_highest_slotid        = new slotid4(xdr);
     sr_target_highest_slotid = new slotid4(xdr);
     sr_status_flags          = new uint32_t(xdr);
 }
Ejemplo n.º 11
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     seqid = new seqid4(xdr);
     share_access = new uint32_t(xdr);
     share_deny = new uint32_t(xdr);
     owner = new open_owner4(xdr);
     openhow = new openflag4(xdr);
     claim = new open_claim4(xdr);
 }
Ejemplo n.º 12
0
    public void xdrDecode(XdrDecodingStream xdr)
 {
        eir_clientid = new clientid4(xdr);
        eir_sequenceid = new sequenceid4(xdr);
        eir_flags = new uint32_t(xdr);
        eir_state_protect = new state_protect4_r(xdr);
        eir_server_owner = new server_owner4(xdr);
        eir_server_scope = xdr.xdrDecodeDynamicOpaque();
        { int size = xdr.xdrDecodeInt(); eir_server_impl_id = new nfs_impl_id4[size]; for ( int idx = 0; idx < size; ++idx ) { eir_server_impl_id[idx] = new nfs_impl_id4(xdr); } }
    }
Ejemplo n.º 13
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     eir_clientid = new clientid4(xdr);
     eir_sequenceid = new sequenceid4(xdr);
     eir_flags = new uint32_t(xdr);
     eir_state_protect = new state_protect4_r(xdr);
     eir_server_owner = new server_owner4(xdr);
     eir_server_scope = xdr.xdrDecodeDynamicOpaque();
     { int size = xdr.xdrDecodeInt(); eir_server_impl_id = new nfs_impl_id4[size]; for (int idx = 0; idx < size; ++idx) { eir_server_impl_id[idx] = new nfs_impl_id4(xdr); } }
 }
Ejemplo n.º 14
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     csa_clientid = new clientid4(xdr);
     csa_sequence = new sequenceid4(xdr);
     csa_flags = new uint32_t(xdr);
     csa_fore_chan_attrs = new channel_attrs4(xdr);
     csa_back_chan_attrs = new channel_attrs4(xdr);
     csa_cb_program = new uint32_t(xdr);
     { int size = xdr.xdrDecodeInt(); csa_sec_parms = new callback_sec_parms4[size]; for (int idx = 0; idx < size; ++idx) { csa_sec_parms[idx] = new callback_sec_parms4(xdr); } }
 }
Ejemplo n.º 15
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     tag          = new utf8str_cs(xdr);
     minorversion = new uint32_t(xdr);
     { int size = xdr.xdrDecodeInt(); argarray = new nfs_argop4[size]; for (int idx = 0; idx < size; ++idx)
       {
           argarray[idx] = new nfs_argop4(xdr);
       }
     }
 }
Ejemplo n.º 16
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     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);
       }
     }
 }
Ejemplo n.º 17
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     supported = new uint32_t(xdr);
     access = new uint32_t(xdr);
 }
Ejemplo n.º 18
0
 public count4(uint32_t value) {
     this.value = value;
 }
Ejemplo n.º 19
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     { int size = xdr.xdrDecodeInt(); value = new uint32_t[size]; for ( int idx = 0; idx < size; ++idx ) { value[idx] = new uint32_t(xdr); } }
 }
Ejemplo n.º 20
0
 public bitmap4(uint32_t [] value) {
     this.value = value;
 }
Ejemplo n.º 21
0
 public void xdrDecode(XdrDecodingStream xdr)
       {
     seconds = new int64_t(xdr);
     nseconds = new uint32_t(xdr);
 }
Ejemplo n.º 22
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     seqid = new uint32_t(xdr);
     other = xdr.xdrDecodeOpaque(12);
 }
Ejemplo n.º 23
0
 public slotid4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 24
0
 public mode4(uint32_t value) {
     this.value = value;
 }
Ejemplo n.º 25
0
 public seqid4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 26
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     seqid = new uint32_t(xdr);
     other = xdr.xdrDecodeOpaque(12);
 }
Ejemplo n.º 27
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     access = new uint32_t(xdr);
 }
Ejemplo n.º 28
0
 public seqid4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 29
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     value = new uint32_t(xdr);
 }
Ejemplo n.º 30
0
 public count4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 31
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     seconds  = new int64_t(xdr);
     nseconds = new uint32_t(xdr);
 }
Ejemplo n.º 32
0
 public mode4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 33
0
 public void xdrDecode(XdrDecodingStream xdr)
   {
     tag = new utf8str_cs(xdr);
     minorversion = new uint32_t(xdr);
     { int size = xdr.xdrDecodeInt(); argarray = new nfs_argop4[size]; for ( int idx = 0; idx < size; ++idx ) { argarray[idx] = new nfs_argop4(xdr); } }
 }
Ejemplo n.º 34
0
 public slotid4(uint32_t value)
 {
     this.value = value;
 }
Ejemplo n.º 35
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     supported = new uint32_t(xdr);
     access    = new uint32_t(xdr);
 }
Ejemplo n.º 36
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     access = new uint32_t(xdr);
 }
Ejemplo n.º 37
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     value = new uint32_t(xdr);
 }
Ejemplo n.º 38
0
        public int get_fh_acess(nfs_fh4 file_handle)
        {
            uint32_t access = new uint32_t(0);

            //all acsses possible
            access.value = access.value +
            NFSv4Protocol.ACCESS4_READ +
            NFSv4Protocol.ACCESS4_LOOKUP +
            NFSv4Protocol.ACCESS4_MODIFY +
            NFSv4Protocol.ACCESS4_EXTEND +
            NFSv4Protocol.ACCESS4_DELETE; //+
            //NFSv4Protocol.ACCESS4_EXECUTE; 

            List<nfs_argop4> ops = new List<nfs_argop4>();


            ops.Add(SequenceStub.generateRequest(false, _sessionid.value,
                    _sequenceID.value.value, 12, 0));
            ops.Add(PutfhStub.generateRequest(file_handle));
            ops.Add(AcessStub.generateRequest(access));


            COMPOUND4res compound4res = sendCompound(ops, "");

            if (compound4res.status == nfsstat4.NFS4_OK)
            {

                return compound4res.resarray[2].opaccess.resok4.access.value;
            }
            else
            {
                throw new NFSConnectionException(nfsstat4.getErrorString(compound4res.status));
            }
        }