mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Add progress messages to fill-pattern command.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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")],
|
||||
|
||||
Reference in New Issue
Block a user