From owner-freebsd-arch@FreeBSD.ORG Fri Mar 11 16:12:50 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20D3116A4CE for ; Fri, 11 Mar 2005 16:12:50 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D9FF43D49 for ; Fri, 11 Mar 2005 16:12:49 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j2BGClWx002280; Fri, 11 Mar 2005 17:12:47 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: dima <_pppp@mail.ru> From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 11 Mar 2005 16:29:39 +0300." Date: Fri, 11 Mar 2005 17:12:47 +0100 Message-ID: <2279.1110557567@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: arch@freebsd.org Subject: Re: Re[2]: HEADSUP: linux dev_t emulation X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2005 16:12:50 -0000 In message , dima writes: >> In message <20050310222652.GA31757@infradead.org>, Christoph Hellwig writes: >>>On Thu, Mar 10, 2005 at 10:11:44PM +0100, Poul-Henning Kamp wrote: >>>> >>>> Linux has only 8 bit major + 8 bit minor dev_t. >>> >>>Not true anymore. Current Linux has 12bit major and 20bit minor. >> >> Well, that doesn't change the situation: the linuxolator has a task >> to learn. > >A translation table probably? If so then the table will have to key off the name in the cdevsw associated with the cdev since our major/minor numbers are no longer constant across reboots (just like hardware configurations are not). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.