From: Richard Jones Date: Sat, 28 Aug 2010 13:28:42 +0000 (+0100) Subject: Add progress messages to fill-pattern command. X-Git-Tag: 1.5.7~16 X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=commitdiff_plain;h=55938405ccd3d5e5736f30c9bd78a51998cd7158;ds=sidebyside Add progress messages to fill-pattern command. --- diff --git a/daemon/fill.c b/daemon/fill.c index a3e3d37..8686226 100644 --- a/daemon/fill.c +++ b/daemon/fill.c @@ -113,6 +113,7 @@ do_fill_pattern (const char *pattern, int len, const char *path) return -1; } n += wrlen; + notify_progress ((uint64_t) n, (uint64_t) len_sz); } if (close (fd) == -1) { diff --git a/src/generator.ml b/src/generator.ml index b5c88e9..c9a99e1 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -5068,7 +5068,7 @@ filename is not printable, coreutils uses a special backslash syntax. For more information, see the GNU coreutils info file."); - ("fill_pattern", (RErr, [String "pattern"; Int "len"; Pathname "path"]), 245, [], + ("fill_pattern", (RErr, [String "pattern"; Int "len"; Pathname "path"]), 245, [Progress], [InitBasicFS, Always, TestOutputBuffer ( [["fill_pattern"; "abcdefghijklmnopqrstuvwxyz"; "28"; "/test"]; ["read_file"; "/test"]], "abcdefghijklmnopqrstuvwxyzab")],