From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] virtio_blk: Dont waste major numbers Date: Thu, 20 Mar 2008 10:36:53 -0700 Message-ID: <47E2A0B5.8090707@zytor.com> References: <200801311553.53653.borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel , virtualization@lists.linux-foundation.org To: Christian Borntraeger Return-path: In-Reply-To: <200801311553.53653.borntraeger@de.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org 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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/