HomeFreeBSD

7885 zpool list can report 16.0e for expandsz

Description

7885 zpool list can report 16.0e for expandsz

illumos/illumos-gate@c040c10cdd1e4eab0fc88203758367dd81e057b7
https://github.com/illumos/illumos-gate/commit/c040c10cdd1e4eab0fc88203758367dd81e057b7

https://www.illumos.org/issues/7885

When a member of a RAIDZ has been replaced with a device smaller than the
original, then the top level vdev can report its expand size as 16.0E.
The reduced child asize causes the RAIDZ to have a vdev_asize lower than its
vdev_max_asize which then results in an underflow during the calculation of the
parents expand size.
Also for RAIDZ vdevs the sum of their child vdev_min_asize could be smaller
than the parents vdev_min_size.
Fixed by: https://github.com/openzfs/openzfs/pull/296

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Author: Steven Hartland <steven.hartland@multiplay.co.uk>

Details

Provenance
avgAuthored on Apr 14 2017, 6:28 PM
Parents
rG2d3fcc82a176: 7990 libzfs: snapspec_cb() does not need to call zfs_strdup()
Branches
Unknown
Tags
Unknown

Event Timeline