Skip to content

Commit d561ed5

Browse files
quic-bjorandeandersson
authored andcommitted
firehose: Provide progress bar on read as well
Rather than letting the user wait in silence for read operations add a progress bar, in the same way as it's done for writing. Make it conditional on the "quiet" variable, to avoid spamming the log when the GPT parser etc kicks in. Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 08c4657 commit d561ed5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

firehose.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,9 @@ static int firehose_issue_read(struct qdl_device *qdl, struct read_op *read_op,
651651
// on mac/linux, every other response is empty
652652
expect_empty = true;
653653
#endif
654+
655+
if (!quiet)
656+
ux_progress("%s", read_op->num_sectors - left, read_op->num_sectors, read_op->filename);
654657
}
655658

656659
ret = firehose_read(qdl, 10000, firehose_generic_parser, NULL);

0 commit comments

Comments
 (0)