HomeFreeBSD

zdb: fix overflow of time estimation

Description

zdb: fix overflow of time estimation

The calculation of estimated time remaining in zdb -cc could overflow,
as reported in #10666. This patch fixes this, by using uint64_t instead
of ints in the calculations.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Teodor Spæren <teodor@sparen.no>
Closes #10666
Closes #12610

Details

Provenance
Teodor Spæren <teodor_spaeren@riseup.net>Authored on Oct 15 2021, 10:55 PM
GitHub <noreply@github.com>Committed on Oct 15 2021, 10:55 PM
Parents
rGafbc61792116: Remove FreeBSD's local copy of the dmu_buf_hold_array() function
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG01b572bc623c: zdb: fix overflow of time estimation (authored by Teodor Spæren <teodor_spaeren@riseup.net>).Oct 15 2021, 10:55 PM