HomeFreeBSD

Fix divide by zero during indirect split damage

Description

Fix divide by zero during indirect split damage

This patch simply ensures that vdev_indirect_splits_damage()
cannot hit a divide by zero exception if a split has no
children with valid data. The normal reconstruction code
path in vdev_indirect_reconstruct_io_done() already has this
check.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #8086

Details

Provenance
Tom Caputi <tcaputi@datto.com>Authored on Nov 7 2018, 11:44 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Nov 7 2018, 11:44 PM
Parents
rGfde25c0a87ea: Fix dirtying vdev config on with RO spa
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG20eb30d08e24: Fix divide by zero during indirect split damage (authored by Tom Caputi <tcaputi@datto.com>).Nov 7 2018, 11:44 PM