summaryrefslogtreecommitdiffstats
path: root/generator
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:33:31 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:35:32 +0000
commit8022d46e5e2d9c3ab664ace6c9f185976e34dc20 (patch)
tree9157a281eae9ffc89065ec2763edca636e92b910 /generator
parent11be64049ba3ce36e1be297d2d6f54abca079742 (diff)
downloadlibguestfs-8022d46e5e2d9c3ab664ace6c9f185976e34dc20.tar.gz
libguestfs-8022d46e5e2d9c3ab664ace6c9f185976e34dc20.tar.xz
libguestfs-8022d46e5e2d9c3ab664ace6c9f185976e34dc20.zip
Add progress notification messages to upload and upload-offset APIs.
Diffstat (limited to 'generator')
-rw-r--r--generator/generator_actions.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml
index 0d08f730..a405fd4a 100644
--- a/generator/generator_actions.ml
+++ b/generator/generator_actions.ml
@@ -2359,7 +2359,7 @@ Reread the partition table on C<device>.
This uses the L<blockdev(8)> command.");
- ("upload", (RErr, [FileIn "filename"; Dev_or_Path "remotefilename"], []), 66, [],
+ ("upload", (RErr, [FileIn "filename"; Dev_or_Path "remotefilename"], []), 66, [Progress],
[InitScratchFS, Always, TestOutput (
(* Pick a file from cwd which isn't likely to change. *)
[["mkdir"; "/upload"];
@@ -5510,7 +5510,7 @@ removes the partition number, returning the device name
The named partition must exist, for example as a string returned
from C<guestfs_list_partitions>.");
- ("upload_offset", (RErr, [FileIn "filename"; Dev_or_Path "remotefilename"; Int64 "offset"], []), 273, [],
+ ("upload_offset", (RErr, [FileIn "filename"; Dev_or_Path "remotefilename"; Int64 "offset"], []), 273, [Progress],
(let md5 = Digest.to_hex (Digest.file "COPYING.LIB") in
[InitScratchFS, Always, TestOutput (
[["upload_offset"; "../COPYING.LIB"; "/upload_offset"; "0"];