Пример #1
0
  public static nfsv4_1_file_layout4 decodeLayoutId(byte[] data)
      throws OncRpcException, IOException {

    XdrDecodingStream xdr = new XdrBuffer(data);
    nfsv4_1_file_layout4 device = new nfsv4_1_file_layout4();

    xdr.beginDecoding();
    device.xdrDecode(xdr);
    xdr.endDecoding();

    return device;
  }
Пример #2
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   ffl_stripe_unit = new length4(xdr);
   {
     int $size = xdr.xdrDecodeInt();
     ffl_mirrors = new ff_mirror4[$size];
     for (int $idx = 0; $idx < $size; ++$idx) {
       ffl_mirrors[$idx] = new ff_mirror4(xdr);
     }
   }
   ffl_flags4 = new uint32_t(xdr);
   ffl_stats_collect_hint = new uint32_t(xdr);
 }
Пример #3
0
 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;
   }
 }
Пример #4
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   spa_how = xdr.xdrDecodeInt();
   switch (spa_how) {
     case state_protect_how4.SP4_NONE:
       break;
     case state_protect_how4.SP4_MACH_CRED:
       spa_mach_ops = new state_protect_ops4(xdr);
       break;
     case state_protect_how4.SP4_SSV:
       spa_ssv_parms = new ssv_sp_parms4(xdr);
       break;
   }
 }
Пример #5
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   value = xdr.xdrDecodeOpaque(mount_prot.FHSIZE2);
 }
Пример #6
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   data = xdr.xdrDecodeDynamicOpaque();
 }
Пример #7
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   value = xdr.xdrDecodeInt();
 }