Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 9 Mar 2003 23:36:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 9 Mar 2003 23:36:10 -0500 Received: from waste.org ([209.173.204.2]:29899 "EHLO waste.org") by vger.kernel.org with ESMTP id ; Sun, 9 Mar 2003 23:36:10 -0500 Date: Sun, 9 Mar 2003 22:46:17 -0600 From: Oliver Xymoron To: Alan Cox Cc: Linus Torvalds , Andrew Morton , Greg KH , hch@infradead.org, Andries.Brouwer@cwi.nl, Linux Kernel Mailing List Subject: Re: [PATCH] register_blkdev Message-ID: <20030310044617.GF910@waste.org> References: <1047136177.25932.25.camel@irongate.swansea.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1047136177.25932.25.camel@irongate.swansea.linux.org.uk> User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1649 Lines: 34 On Sat, Mar 08, 2003 at 03:09:37PM +0000, Alan Cox wrote: > On Sat, 2003-03-08 at 01:13, Linus Torvalds wrote: > > On Fri, 7 Mar 2003, Andrew Morton wrote: > > > > > > Some time back Linus expressed a preference for a 2^20 major / 2^12 minor split. > > > > Other way around. 12 bits for major, 20 bits for minor. > > > > Minor numbers tend to get used up more quickly, as shown by the current > > state of affairs, and also as trivially shown by things like pty-like > > virtual devices that pretty much scale arbitrarily with memory and users. > > 20:12 is easier for the current behaviour. 12:20 with the ability to hand out > sections of space has great potential for lumping things like "disks", > "serial ports" and so on together in more logical ways. 12:20 also makes the > compatibility logic easier since all of the legacy space falls in "major 0" > which becomes the remangler. > > Is there any reason for not using CIDR like schemes as Al Viro proposed a long > time back (I think it was Al anyway). That also sorts out the auditing problem I think it was actually me, arguing with Viro. I was building a device number registration layer on top of the new resource tree structure at the time (now 3 years ago!). And in retrospect, I think 32:32 internally with an 8:8 legacy mangler is probably the sanest way to go. -- "Love the dolphins," she advised him. "Write by W.A.S.T.E.." - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/