HomeFreeBSD

MFC r350233: Make CAM ATA stack handle disk resizes.

Description

MFC r350233: 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.

Relnotes: yes

Details

Provenance
mavAuthored on
Parents
rS350804: MFC r326645 (by imp): Define xpt_path_inq.
Branches
Unknown
Tags
Unknown