summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:31:25 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:35:32 +0000
commit11be64049ba3ce36e1be297d2d6f54abca079742 (patch)
treebdf107dae604b6ac663173ed15bad23ed966d423 /daemon
parent8bfca99b9ab5774ce8aa1086184479ebb98236b2 (diff)
downloadlibguestfs-11be64049ba3ce36e1be297d2d6f54abca079742.tar.gz
libguestfs-11be64049ba3ce36e1be297d2d6f54abca079742.tar.xz
libguestfs-11be64049ba3ce36e1be297d2d6f54abca079742.zip
protocol: Handle progress notification messages during FileIn.
If the daemon sends progress notification messages while we are uploading FileIn parameters, these are received in check_for_daemon_cancellation_or_eof. Modify this library function so that it turns these messages into callbacks.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/proto.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/proto.c b/daemon/proto.c
index f3a3b26c..1fdb26c7 100644
--- a/daemon/proto.c
+++ b/daemon/proto.c
@@ -425,6 +425,7 @@ receive_file (receive_cb cb, void *opaque)
return 0; /* end of file */
}
+ /* Note that the callback can generate progress messages. */
if (cb)
r = cb (opaque, chunk.data.data_val, chunk.data.data_len);
else