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;
  }
Beispiel #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);
 }
 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 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;
   }
 }
Beispiel #5
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   value = xdr.xdrDecodeOpaque(mount_prot.FHSIZE2);
 }
Beispiel #6
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   data = xdr.xdrDecodeDynamicOpaque();
 }
Beispiel #7
0
 public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException {
   value = xdr.xdrDecodeInt();
 }