+void mount_export_cb(struct rpc_context *mount_context, int status, void *data, void *private_data)
+{
+ struct client *client = private_data;
+ exports export = *(exports *)data;
+
+ if (status < 0) {
+ printf("MOUNT/EXPORT failed with \"%s\"\n", rpc_get_error(mount_context));
+ exit(10);
+ }
+
+ printf("Got exports list from server %s\n", client->server);
+ while (export != NULL) {
+ printf("Export: %s\n", export->ex_dir);
+ export = export->ex_next;
+ }
+
+ mount_context = NULL;
+
+ client->is_finished = 1;
+}
+