From d561ed5bd24b476c134ba7b1f4fcd50293f61347 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Tue, 16 Sep 2025 21:13:17 -0500 Subject: [PATCH] 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 --- firehose.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/firehose.c b/firehose.c index 4840417..2609c3a 100644 --- a/firehose.c +++ b/firehose.c @@ -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);