Open espux opened 9 months ago
Are you using btrfs scrub status -d
? As without -d
, at least for the latest code base, it's printing the total used bytes.
For per-device reporting, the output looks lacking the leading lines like Scrub device %s (id %llu)
.
Otherwise it's indeed a problem, and it looks like it's caused by commit c88ac0170b35 ("btrfs-progs: scrub: unify the output numbers for "Total to scrub""), which changed the print_scrub_dev()
to use the real scrubbed bytes.
But that change unfortunately is not good for running scrubs. I can add extra checks to change it to output the old values for running scrubs.
When running scrub on one device in a multi device filesystem scrub status shows incorrect value for "Total to scrub". Instead it shows same value as "Bytes scrubbed". Also the "Time left" and "ETA" are wrong. This issue seems to have been introduced with V6.3.
Output from v6.2.2 (and earlier):
Output from v6.3 (and later):