Re: Change in register_blkdev() behavior

From: Srivatsa S. Bhat
Date: Thu Feb 01 2018 - 19:25:23 EST


On 1/31/18 6:24 AM, Greg KH wrote:
> On Tue, Jan 30, 2018 at 04:56:32PM -0800, Srivatsa S. Bhat wrote:
>>
>> Hi,
>>
>> Before commit 133d55cdb2f "block: order /proc/devices by major number",
>> if register_blkdev() was called with major = [1..UINT_MAX], it used to
>> succeed (provided the requested major number was actually free).
>
> How was LTP calling register_blkdev() with such crazy numbers?
>

Haha :-) No idea!

> Anyway, I agree with Logan, this sounds like something to be resolved in
> LTP, as allowing block devices with numbers greater than the number we
> really allow seems like an odd requirement :)
>

Agreed! And thanks for confirming!

Regards,
Srivatsa