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 <bjorn.andersson@oss.qualcomm.com>
This commit is contained in:
Bjorn Andersson
2025-09-16 21:13:17 -05:00
committed by Bjorn Andersson
parent 08c4657e8d
commit d561ed5bd2

View File

@@ -651,6 +651,9 @@ static int firehose_issue_read(struct qdl_device *qdl, struct read_op *read_op,
// on mac/linux, every other response is empty
expect_empty = true;
#endif
if (!quiet)
ux_progress("%s", read_op->num_sectors - left, read_op->num_sectors, read_op->filename);
}
ret = firehose_read(qdl, 10000, firehose_generic_parser, NULL);