From 7f1ecfc87eb45cab401394b980e15f8981511627 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Sat, 28 Aug 2010 14:28:26 +0100 Subject: [PATCH] Add progress messages to fill 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 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")], -- 1.8.3.1