use of org.apache.hadoop.oncrpc.security.VerifierNone in project hadoop by apache.
the class TestOutOfOrderWrite method write.
static XDR write(FileHandle handle, int xid, long offset, int count, byte[] data) {
XDR request = new XDR();
RpcCall.getInstance(xid, Nfs3Constant.PROGRAM, Nfs3Constant.VERSION, Nfs3Constant.NFSPROC3.CREATE.getValue(), new CredentialsNone(), new VerifierNone()).write(request);
WRITE3Request write1 = new WRITE3Request(handle, offset, count, WriteStableHow.UNSTABLE, ByteBuffer.wrap(data));
write1.serialize(request);
return request;
}
Aggregations