OncRpcClient.newOncRpcClient(host, MOUNT_CODE, MOUNT_VERSION,
protocol == Protocol.UDP ? OncRpcProtocols.ONCRPC_UDP
: OncRpcProtocols.ONCRPC_TCP);
client.setTimeout(10000);
if (uid != -1 && gid != -1) {
client.setAuth(new OncRpcClientAuthUnix("test", uid, gid));
}
return client;
}