HomeFreeBSD

Fix a bug introduced in r291716:

Description

Fix a bug introduced in r291716:

"The problem with the approach taken both in _bus_dmamap_load_pages and
bus_dmamap_load_ma_triv is that they split the request buffer into
arbitrary chunks based on page boundaries, creating segments that no
longer have a size that's a multiple of the sector size. This breaks
drivers like blkfront (and probably other stuff)." [1]

This was most easily triggered by running fsck / on a system running
in Xen (e.g. Amazon EC2) but also showed up via growfs(8) and probably
many other userland tools which access the disk directly.

Patch by: royger [1]
"Thinks this should be fine" by: ken

Details

Provenance
cpercivaAuthored on
Parents
rS293697: Correct a comment.
Branches
Unknown
Tags
Unknown