HomeFreeBSD

Make CAM ATA stack handle disk resizes.

Description

Make CAM ATA stack handle disk resizes.

While for ATA disks resize is even more rare situation than for SCSI, it
may happen in case of HPA or AMA being used. Make ATA XPT report minor
IDENTIFY DATA change to upper layers with AC_GETDEV_CHANGED, and ada(4)
periph driver handle that event, recalculating all the disk properties and
signalling resize to GEOM. Since ATA has no mechanism of UNIT ATTENTIONs,
like SCSI, it has no way to detect that something has changed. That is why
this functionality depends on explicit reprobe via XPT_REPROBE_LUN call.

MFC after: 2 weeks
Relnotes: yes
Sponsored by: iXsystems, Inc.

Details

Provenance
mavAuthored on
Parents
rS350232: powerpc: Unbreak 64-bit pmap from 350206
Branches
Unknown
Tags
Unknown