public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { object = new nfs_fh4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { value = new nfs_fh4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { object = new nfs_fh4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { cpda_fh = new nfs_fh4(xdr); cpda_delegation = new open_delegation4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { fh = new nfs_fh4(xdr); attr_request = new bitmap4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { cnla_fh = new nfs_fh4(xdr); cnla_lock_owner = new lock_owner4(xdr); }
public static nfs_fh4 generateFileHandle() { byte[] b = new byte[nfs4_prot.NFS4_FHSIZE]; RANDOM.nextBytes(b); return new nfs_fh4(b); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { stateid = new stateid4(xdr); truncate = xdr.xdrDecodeBoolean(); fh = new nfs_fh4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { cna_stateid = new stateid4(xdr); cna_fh = new nfs_fh4(xdr); { int $size = xdr.xdrDecodeInt(); cna_changes = new notify4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { cna_changes[$idx] = new notify4(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { lor_fh = new nfs_fh4(xdr); lor_offset = new offset4(xdr); lor_length = new length4(xdr); lor_stateid = new stateid4(xdr); }
private void lookup(String fh, String path) throws OncRpcException, IOException { COMPOUND4args args = new CompoundBuilder() .withSequence(false, _sessionid, _sequenceID.value, _slotId, 0) .withPutfh( new nfs_fh4(fh.getBytes())) .withLookup(path) .withGetfh() .withTag("lookup-with-id") .build(); COMPOUND4res compound4res = sendCompound(args); System.out.println("fh = " + BaseEncoding.base16().lowerCase().encode(compound4res.resarray.get(compound4res.resarray.size() - 1).opgetfh.resok4.object.value)); }
@Override public void process(CompoundContext context, nfs_resop4 result) throws ChimeraNFSException, IOException { final GETFH4res res = result.opgetfh; res.resok4 = new GETFH4resok(); res.resok4.object = new nfs_fh4(); res.resok4.object.value = context.currentInode().toNfsHandle(); res.status = nfsstat.NFS_OK; } }
nfs_fh4 cwd(String path) throws OncRpcException, IOException { COMPOUND4args args = new CompoundBuilder() .withSequence(false, _sessionid, _sequenceID.value, _slotId, 0) .withPutfh(path.charAt(0) == '/' ? _rootFh : _cwd) .withLookup(path) .withGetfh() .withTag("lookup (cwd)") .build(); COMPOUND4res compound4res = sendCompound(args); _cwd = compound4res.resarray.get(compound4res.resarray.size() - 1).opgetfh.resok4.object; System.out.println("CWD fh = " + BaseEncoding.base16().lowerCase().encode(_cwd.value)); return new nfs_fh4(_cwd.value); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { nfl_deviceid = new deviceid4(xdr); nfl_util = new nfl_util4(xdr); nfl_first_stripe_index = new uint32_t(xdr); nfl_pattern_offset = new offset4(xdr); { int $size = xdr.xdrDecodeInt(); nfl_fh_list = new nfs_fh4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { nfl_fh_list[$idx] = new nfs_fh4(xdr); } } }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ffl_addr = new netaddr4(xdr); ffl_fhandle = new nfs_fh4(xdr); ffl_read = new ff_io_latency4(xdr); ffl_write = new ff_io_latency4(xdr); ffl_duration = new nfstime4(xdr); ffl_local = xdr.xdrDecodeBoolean(); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { ffds_deviceid = new deviceid4(xdr); ffds_efficiency = new uint32_t(xdr); ffds_stateid = new stateid4(xdr); { int $size = xdr.xdrDecodeInt(); ffds_fh_vers = new nfs_fh4[$size]; for ( int $idx = 0; $idx < $size; ++$idx ) { ffds_fh_vers[$idx] = new nfs_fh4(xdr); } } ffds_user = new fattr4_owner(xdr); ffds_group = new fattr4_owner_group(xdr); }
nfs_fh4 fh = new nfs_fh4(); fh.value = inode.toNfsHandle(); return Optional.of(new fattr4_filehandle(fh));