From 55938405ccd3d5e5736f30c9bd78a51998cd7158 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 28 Aug 2010 14:28:42 +0100 Subject: [PATCH] Add progress messages to fill-pattern command. --- daemon/fill.c | 1 + src/generator.ml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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")], -- 1.8.3.1