collect nfs servers into a dedicated list and parse this list and print the results...
[deb_libnfs.git] / lib / libnfs-sync.c
index 3b10e0a28a1843f5c420def19af95a30e53e56e2..4c8ba76a5139eb2e66351498fdc992a55cda8990 100644 (file)
@@ -1069,16 +1069,20 @@ int nfs_link(struct nfs_context *nfs, const char *oldpath, const char *newpath)
        return cb_data.status;
 }
 
-void mount_getexports_cb(struct rpc_context *mount_context _U_, int status, void *data, void *private_data)
+void mount_getexports_cb(struct rpc_context *mount_context, int status, void *data, void *private_data)
 {
        struct sync_cb_data *cb_data = private_data;
        exports export = *(exports *)data;
 
-       printf("got exports back\n");
        cb_data->is_finished = 1;
        cb_data->status = status;
        cb_data->return_data = NULL;
 
+       if (status != 0) {
+               rpc_set_error(mount_context, "mount/export call failed with \"%s\"", (char *)data);
+               return;
+       }
+
        while (export != NULL) {
                exports new_export;