HomeFreeBSD

MFC r318926: MFV r316919: 7885 zpool list can report 16.0e for expandsz

Description

MFC r318926: MFV r316919: 7885 zpool list can report 16.0e for expandsz

FreeBSD note: this is a record-only change, the actual change was
directly committed by smh.

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
mavAuthored on
Reviewer
matthew
Parents
rS321563: MFC r318925: MFV r316929: 6914 kernel virtual memory fragmentation leads to hang
Branches
Unknown
Tags
Unknown