]> granicus.if.org Git - zfs/commitdiff
Fix `zpool status` overflow on fast scrubs
authorDeHackEd <DeHackEd@users.noreply.github.com>
Wed, 7 Feb 2018 00:35:16 +0000 (19:35 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Feb 2018 00:35:16 +0000 (16:35 -0800)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: DHE <git@dehacked.net>
Closes #7133

cmd/zpool/zpool_main.c

index 273453f000405fd1d2c70dd13e7bf25d1eb0041c..9aa6dce96094f9a22c409469f19d45a8b990ee27 100644 (file)
@@ -5989,7 +5989,7 @@ print_scan_status(pool_scan_stat_t *ps)
        uint64_t total_secs_left;
        uint64_t elapsed, secs_left, mins_left, hours_left, days_left;
        uint64_t pass_scanned, scanned, pass_issued, issued, total;
-       uint_t scan_rate, issue_rate;
+       uint64_t scan_rate, issue_rate;
        double fraction_done;
        char processed_buf[7], scanned_buf[7], issued_buf[7], total_buf[7];
        char srate_buf[7], irate_buf[7];