Beispiel #1
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cookie       = new nfs_cookie4(xdr);
     cookieverf   = new verifier4(xdr);
     dircount     = new count4(xdr);
     maxcount     = new count4(xdr);
     attr_request = new bitmap4(xdr);
 }
Beispiel #2
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cookie = new nfs_cookie4(xdr);
     cookieverf = new verifier4(xdr);
     dircount = new count4(xdr);
     maxcount = new count4(xdr);
     attr_request = new bitmap4(xdr);
 }
Beispiel #3
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     gdlr_cookieverf = new verifier4(xdr);
     { int _size = xdr.xdrDecodeInt(); gdlr_deviceid_list = new deviceid4[_size]; for (int _idx = 0; _idx < _size; ++_idx)
       {
           gdlr_deviceid_list[_idx] = new deviceid4(xdr);
       }
     }
     gdlr_eof = xdr.xdrDecodeBoolean();
 }
Beispiel #4
0
  public void xdrDecode(XdrDecodingStream xdr)
 {
      mode = xdr.xdrDecodeInt();
      switch ( mode ) {
      case createmode4.UNCHECKED4:
      case createmode4.GUARDED4:
          createattrs = new fattr4(xdr);
          break;
      case createmode4.EXCLUSIVE4:
          createverf = new verifier4(xdr);
          break;
      case createmode4.EXCLUSIVE4_1:
          ch_createboth = new creatverfattr(xdr);
          break;
      }
  }
Beispiel #5
0
        public void xdrDecode(XdrDecodingStream xdr)
        {
            mode = xdr.xdrDecodeInt();
            switch (mode)
            {
            case createmode4.UNCHECKED4:
            case createmode4.GUARDED4:
                createattrs = new fattr4(xdr);
                break;

            case createmode4.EXCLUSIVE4:
                createverf = new verifier4(xdr);
                break;

            case createmode4.EXCLUSIVE4_1:
                ch_createboth = new creatverfattr(xdr);
                break;
            }
        }
Beispiel #6
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     count     = new count4(xdr);
     committed = xdr.xdrDecodeInt();
     writeverf = new verifier4(xdr);
 }
Beispiel #7
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cookieverf = new verifier4(xdr);
     reply      = new dirlist4(xdr);
 }
 public void xdrDecode(XdrDecodingStream xdr)
 {
     gdla_maxdevices = new count4(xdr);
     gdla_cookie     = new nfs_cookie4(xdr);
     gdla_cookieverf = new verifier4(xdr);
 }
 public void xdrDecode(XdrDecodingStream xdr) {
     gdlr_cookieverf = new verifier4(xdr);
     { int _size = xdr.xdrDecodeInt(); gdlr_deviceid_list = new deviceid4[_size]; for ( int _idx = 0; _idx < _size; ++_idx ) { gdlr_deviceid_list[_idx] = new deviceid4(xdr); } }
     gdlr_eof = xdr.xdrDecodeBoolean();
 }
Beispiel #10
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     count = new count4(xdr);
     committed = xdr.xdrDecodeInt();
     writeverf = new verifier4(xdr);
 }
Beispiel #11
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     co_verifier = new verifier4(xdr);
     co_ownerid  = xdr.xdrDecodeDynamicOpaque();
 }
Beispiel #12
0
 public void xdrDecode(XdrDecodingStream xdr) {
     setclientid_confirm = new verifier4(xdr);
 }
Beispiel #13
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cva_verf = new verifier4(xdr);
     cva_attrs = new fattr4(xdr);
 }
Beispiel #14
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cookieverf = new verifier4(xdr);
     reply = new dirlist4(xdr);
 }
 public void xdrDecode(XdrDecodingStream xdr) {
     gdla_maxdevices = new count4(xdr);
     gdla_cookie = new nfs_cookie4(xdr);
     gdla_cookieverf = new verifier4(xdr);
 }
Beispiel #16
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     cva_verf  = new verifier4(xdr);
     cva_attrs = new fattr4(xdr);
 }
Beispiel #17
0
 public void xdrDecode(XdrDecodingStream xdr)
 {
     co_verifier = new verifier4(xdr);
     co_ownerid = xdr.xdrDecodeDynamicOpaque();
 }
 public void xdrDecode(XdrDecodingStream xdr)
 {
     setclientid_confirm = new verifier4(xdr);
 }
Beispiel #19
0
        public List<String> GetItemListByFH(nfs_fh4 dir_fh)
        {

            //should return result
            int acess = get_fh_acess(dir_fh);


            List<string> ItemsList = new List<string>();

            //has read acess
            if (acess % 2 == 1)
            {

                bool done = false;
                long cookie = 0;

                verifier4 verifier = new verifier4(0);

                do
                {

                    List<nfs_argop4> ops = new List<nfs_argop4>();
                    ops.Add(SequenceStub.generateRequest(false, _sessionid.value,
                            _sequenceID.value.value, 12, 0));
                    ops.Add(PutfhStub.generateRequest(dir_fh));
                    ops.Add(ReadDirStub.generateRequest(cookie, verifier));

                    COMPOUND4res compound4res = sendCompound(ops, "");

                    if (compound4res.status == nfsstat4.NFS4_OK)
                    {
                        verifier = compound4res.resarray[2].opreaddir.resok4.cookieverf;
                        done = compound4res.resarray[2].opreaddir.resok4.reply.eof;

                        entry4 dirEntry = compound4res.resarray[2].opreaddir.resok4.reply.entries;
                        while (dirEntry != null)
                        {
                            cookie = dirEntry.cookie.value.value;
                            string name = System.Text.Encoding.UTF8.GetString(dirEntry.name.value.value.value);
                            ItemsList.Add(name);
                            dirEntry = dirEntry.nextentry;
                        }

                    }
                    else
                    {
                        throw new NFSGeneralException(nfsstat4.getErrorString(compound4res.status));

                    }

                } while (!done);
                //now do the lookups (maintained by the nfsclient)
            }
            else
                throw new NFSGeneralException(nfsstat4.getErrorString(nfsstat4.NFS4ERR_ACCESS));


            return ItemsList;
        }