From: Richard Jones Date: Sat, 28 Aug 2010 13:28:26 +0000 (+0100) Subject: Add progress messages to fill command. X-Git-Tag: 1.5.7~17 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=7f1ecfc87eb45cab401394b980e15f8981511627;p=libguestfs.git Add progress messages to fill command. --- diff --git a/daemon/fill.c b/daemon/fill.c index 807ee39..a3e3d37 100644 --- a/daemon/fill.c +++ b/daemon/fill.c @@ -66,6 +66,7 @@ do_fill (int c, int len, const char *path) return -1; } n += r; + notify_progress ((uint64_t) n, (uint64_t) len_sz); } if (close (fd) == -1) { diff --git a/src/generator.ml b/src/generator.ml index ec93850..b5c88e9 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -4693,7 +4693,7 @@ partition table), C (a GPT/EFI-style partition table). Other values are possible, although unusual. See C for a full list."); - ("fill", (RErr, [Int "c"; Int "len"; Pathname "path"]), 215, [], + ("fill", (RErr, [Int "c"; Int "len"; Pathname "path"]), 215, [Progress], [InitBasicFS, Always, TestOutputBuffer ( [["fill"; "0x63"; "10"; "/test"]; ["read_file"; "/test"]], "cccccccccc")],