+void rquota_getquota_cb(struct rpc_context *rpc _U_, int status, void *data, void *private_data)
+{
+ struct client *client = private_data;
+ GETQUOTA1res *res = data;
+
+ if (status == RPC_STATUS_ERROR) {
+ printf("rquota/getquota call failed with \"%s\"\n", (char *)data);
+ exit(10);
+ }
+ if (status != RPC_STATUS_SUCCESS) {
+ printf("rquota/getquota call to server %s failed, status:%d\n", client->server, status);
+ exit(10);
+ }
+
+ printf("rquota responded ok\n");
+ client->is_finished = 1;
+}
+
+void rquota_connect_cb(struct rpc_context *rpc, int status, void *data _U_, void *private_data)
+{
+ struct client *client = private_data;
+
+ if (status != RPC_STATUS_SUCCESS) {
+ printf("connection to RPC.RQUOTAD on server %s failed\n", client->server);
+ exit(10);
+ }
+
+ printf("Connected to RPC.RQUOTAD on %s:%d\n", client->server, client->rquota_port);
+ printf("Send GETQUOTA request for uid 100\n");
+ if (rpc_rquota1_getquota_async(rpc, rquota_getquota_cb, EXPORT, 100, client) != 0) {
+ printf("Failed to send fsinfo request\n");
+ exit(10);
+ }
+}
+