public seqid4(XdrDecodingStream xdr) throws OncRpcException, IOException { xdrDecode(xdr); } }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { lock_stateid.xdrEncode(xdr); lock_seqid.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { open_stateid = new stateid4(xdr); seqid = new seqid4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { open_stateid.xdrEncode(xdr); seqid.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { lock_stateid = new stateid4(xdr); lock_seqid = new seqid4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { seqid = new seqid4(xdr); open_stateid = new stateid4(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { seqid.xdrEncode(xdr); open_stateid.xdrEncode(xdr); }
public CompoundBuilder withClose(stateid4 stateid, int seq) { CLOSE4args args = new CLOSE4args(); args.seqid = new seqid4(seq); args.open_stateid = stateid; nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_CLOSE; op.opclose = args; ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { open_stateid.xdrEncode(xdr); seqid.xdrEncode(xdr); share_access.xdrEncode(xdr); share_deny.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { open_stateid = new stateid4(xdr); seqid = new seqid4(xdr); share_access = new uint32_t(xdr); share_deny = new uint32_t(xdr); }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { xdr.xdrEncodeInt(locktype); seqid.xdrEncode(xdr); lock_stateid.xdrEncode(xdr); offset.xdrEncode(xdr); length.xdrEncode(xdr); }
public CompoundBuilder withLocku(int type, stateid4 stateid, int seqid, long offset, long length) { nfs_argop4 op = new nfs_argop4(); op.argop = nfs_opnum4.OP_LOCKU; op.oplocku = new LOCKU4args(); op.oplocku.lock_stateid = stateid; op.oplocku.seqid = new seqid4(seqid); op.oplocku.locktype = type; op.oplocku.offset = new offset4(offset); op.oplocku.length = new length4(length); ops.add(op); return this; }
public void xdrEncode(XdrEncodingStream xdr) throws OncRpcException, IOException { seqid.xdrEncode(xdr); share_access.xdrEncode(xdr); share_deny.xdrEncode(xdr); owner.xdrEncode(xdr); openhow.xdrEncode(xdr); claim.xdrEncode(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { locktype = xdr.xdrDecodeInt(); seqid = new seqid4(xdr); lock_stateid = new stateid4(xdr); offset = new offset4(xdr); length = new length4(xdr); }
public void xdrDecode(XdrDecodingStream xdr) throws OncRpcException, IOException { 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); }
@Before public void setUp() throws UnknownHostException, ChimeraNFSException { stateHandler = new NFSv4StateHandler(); nfsClient = createClient(stateHandler); owner = nfsClient.getOrCreateOwner("client test".getBytes(StandardCharsets.UTF_8), new seqid4(0)); }
@Before public void setUp() throws UnknownHostException, BadSeqidException { _stateHandler = new NFSv4StateHandler(); _client = createClient(_stateHandler); _owner = _client.getOrCreateOwner("client test".getBytes(StandardCharsets.UTF_8), new seqid4(0)); }
@Test public void shouldReturnDifferentStateIdForDifferentClient() throws Exception { NFS4Client client1 = createClient(sh); StateOwner stateOwner1 = client1.getOrCreateOwner("client1".getBytes(StandardCharsets.UTF_8), new seqid4(0)); NFS4Client client2 = createClient(sh); StateOwner stateOwner2 = client1.getOrCreateOwner("client2".getBytes(StandardCharsets.UTF_8), new seqid4(0)); nfs_fh4 fh = generateFileHandle(); Inode inode = Inode.forFile(fh.value); stateid4 s1 = tracker.addOpen(client1, stateOwner1, inode, OPEN4_SHARE_ACCESS_READ, 0); stateid4 s2 = tracker.addOpen(client2, stateOwner2, inode, OPEN4_SHARE_ACCESS_WRITE, 0); assertNotEquals("Same stateid returned", s1, s2); }