]> granicus.if.org Git - zfs/commit
Fix divide by zero during indirect split damage
authorTom Caputi <tcaputi@datto.com>
Wed, 7 Nov 2018 23:44:56 +0000 (18:44 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 7 Nov 2018 23:44:56 +0000 (15:44 -0800)
commit20eb30d08e24c2240a5d66e2e62893e784f586af
tree1410f1d4aa7c8791f4f1992078a8bc3de4427db7
parentfde25c0a87ea7e2d4438485cd55646a91b99c4b4
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
module/zfs/vdev_indirect.c