[PATCH] virtio_blk: Dont waste major numbers

H. Peter Anvin
2008-03-20T17:36:53Z

Christian Borntraeger wrote:
> Rusty,
>
> currently virtio_blk uses one major number per device. While this works
> quite well on most systems it is wasteful and will exhaust major numbers
> on larger installations.
>
> This patch allocates a major number on init and will use 16 minor numbers
> for each disk. That will allow ~64k virtio_blk disks.
>

Would it be too much to allow 64 minors (63 partitions)?  I have run out
of 16, myself, but never 64.

	-hpa