On Sun, May 25, 2014 at 09:43:33PM +0900, Akinobu Mita wrote:
> BLKSECTGET ioctl loads the request queue's max_sectors as unsigned
> short value to the argument pointer. So if the max_sector is greater
> than USHRT_MAX, the upper 16 bits of that is just discarded.
>
> In such case, USHRT_MAX is m
BLKSECTGET ioctl loads the request queue's max_sectors as unsigned
short value to the argument pointer. So if the max_sector is greater
than USHRT_MAX, the upper 16 bits of that is just discarded.
In such case, USHRT_MAX is more preferable than the lower 16 bits of
max_sectors.
Signed-off-by: Ak
2 matches
Mail list logo