Add progress messages to fill-pattern command.

This commit is contained in:
Richard Jones
2010-08-28 14:28:42 +01:00
parent 7f1ecfc87e
commit 55938405cc
2 changed files with 2 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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")],