trapexit / bbf

bad block finder and repair tool
Other
117 stars 7 forks source link

Info message starts scrolling #21

Closed LotusGuy closed 4 years ago

LotusGuy commented 4 years ago

Following the reporting of some bad blocks, the information message, instead of being a single line updated in place, became a series of thousands of scrolling messages. Here's the tail end of what I saw:

Current: 3905605536 (99.96%); bps: 151926.71; eta: 00:00:09; bad: 16; last: 2698
Current: 3905756880 (99.97%); bps: 151926.69; eta: 00:00:08; bad: 16; last: 2698
Current: 3905909056 (99.97%); bps: 151926.70; eta: 00:00:07; bad: 16; last: 2698
Current: 3906061088 (99.98%); bps: 151926.70; eta: 00:00:06; bad: 16; last: 2698
Current: 3906212848 (99.98%); bps: 151926.69; eta: 00:00:05; bad: 16; last: 2698
Current: 3906364288 (99.98%); bps: 151926.67; eta: 00:00:04; bad: 16; last: 2698
Current: 3906515864 (99.99%); bps: 151926.66; eta: 00:00:03; bad: 16; last: 2698
Current: 3906667376 (99.99%); bps: 151926.64; eta: 00:00:02; bad: 16; last: 2698
Current: 3906819128 (99.99%); bps: 151926.64; eta: 00:00:01; bad: 16; last: 2698
Current: 3906970736 (100.00%); bps: 151926.62; eta: 00:00:00; bad: 16; last: 269
Current: 3907029168 (100.00%); bps: 151926.63; eta: 00:00:00; bad: 16; last: 2698638447
Bad blocks written to /root/badblocks.W1H2YHVH

I'm guessing that it was caused by the line extending past 80 columns. Cheers.

trapexit commented 4 years ago

Not necessarily being >80 but greater than whatever the terminal width is. It's a pretty common thing. There might be a way to work around it. I'd have to look into it.

trapexit commented 4 years ago

It's not perfect but it's much better now.