Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 16 Jan 2002 01:30:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 16 Jan 2002 01:30:25 -0500 Received: from wire.cadcamlab.org ([156.26.20.181]:5385 "EHLO wire.cadcamlab.org") by vger.kernel.org with ESMTP id ; Wed, 16 Jan 2002 01:30:18 -0500 Date: Wed, 16 Jan 2002 00:29:42 -0600 To: "Eric S. Raymond" , Rob Landley , Nicolas Pitre , lkml , kbuild-devel@lists.sourceforge.net Subject: Re: CML2-2.1.3 is available Message-ID: <20020116062942.GC2067@cadcamlab.org> In-Reply-To: <20020116034137.CRFB26021.femail12.sdc1.sfba.home.com@there> <20020115224821.A4658@thyrsus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020115224821.A4658@thyrsus.com> User-Agent: Mutt/1.3.25i From: Peter Samuelson Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org [esr] > The version I just released does exactly that. Well, not exactly; it > actually looks at fstab -- /proc/mounts gives you '/dev/root' rather > than a physical device name in the root entry. /etc/fstab is hardly guaranteed to be accurate either. The kernel mounts the root device based on its command line and any pivot_root() calls you make, not based on /etc/fstab. [In practice, I imagine most people don't lie to fstab. The fsck init script would get annoyed.] But the horse's mouth, in this case, is /proc/sys/kernel/real-root-dev, a 16-bit decimal int which represents a device number in MAJOR*256+MINOR format. There *may* also the 'root=' asciiz string in /proc/cmdline, which will be a 4-digit hex number, but that is not reliable - because of pivot_root() among other things. On my system, real-root-dev gives 8453, which means /dev/hde5, which is on ide2. According to /proc/ide/ide2/config, it is a PCI device of type 105a:4d30 [Promise Ultra100], so you can derive CONFIG_BLK_DEV_PDC202XX as well as CONFIG_BLK_DEV_IDEDISK. Peter - 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/