Home
last modified time | relevance | path

Searched hist:"3 e7df58df20ce49994edd2be2be0e2bce991c177" (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/xen/blkfront/
H A Dblkfront.cdiff 3e7df58df20ce49994edd2be2be0e2bce991c177 Thu May 28 10:19:13 CEST 2020 Roger Pau Monné <royger@FreeBSD.org> xen/blkfront: use the correct type for disk sectors

The correct type to use to represent disk sectors is blkif_sector_t
(which is an uint64_t underneath). This avoid truncation of the disk
size calculation when resizing on i386, as otherwise the calculation
of d_mediasize in xbd_connect is truncated to the size of unsigned
long, which is 32bits on i386.

Note this issue didn't affect amd64, because the size of unsigned long
is 64bits there.

Sponsored by: Citrix Systems R&D
MFC after: 1 week