From owner-freebsd-questions@FreeBSD.ORG Wed Feb 20 19:09:39 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13AC416A403 for ; Wed, 20 Feb 2008 19:09:39 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from mail.digitalfreaks.org (arbitor.digitalfreaks.org [216.151.95.158]) by mx1.freebsd.org (Postfix) with ESMTP id CF87813C469 for ; Wed, 20 Feb 2008 19:09:38 +0000 (UTC) (envelope-from lavalamp@spiritual-machines.org) Received: from localhost (localhost [127.0.0.1]) by mail.digitalfreaks.org (Postfix) with ESMTP id 30A7F17C71 for ; Wed, 20 Feb 2008 14:09:38 -0500 (EST) Received: from mail.digitalfreaks.org ([127.0.0.1]) by localhost (mail.digitalfreaks.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 50076-09 for ; Wed, 20 Feb 2008 14:09:36 -0500 (EST) Received: from [192.168.2.161] (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.digitalfreaks.org (Postfix) with ESMTP id 48DD917C58 for ; Wed, 20 Feb 2008 14:09:36 -0500 (EST) From: "Brian A. Seklecki" To: freebsd-questions@freebsd.org Content-Type: text/plain Date: Wed, 20 Feb 2008 14:09:35 -0500 Message-Id: <1203534575.10391.60.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.2 Subject: _devname in src/usr.sbin/sysinstall/devices.c X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Feb 2008 19:09:39 -0000 All: Does anyone know the relationship between this structure (major, minor, delta, etc.) and real device IDs? Obviously devd(8) isn't running in the MFS install kernel, but I assume the magic still happens. Also, I don't see that major/minors indexed here actually matching a booted SMP kernel? $ ls /dev/mfi* crw-r----- 1 root operator 0, 32 Dec 14 13:16 /dev/mfi0 crw-r----- 1 root operator 0, 85 Dec 14 13:16 /dev/mfid0 crw-r----- 1 root operator 0, 87 Dec 14 13:16 /dev/mfid0s1 crw-r----- 1 root operator 0, 95 Dec 14 13:16 /dev/mfid0s1a [...snip...] crw-r----- 1 root operator 0, 101 Dec 14 13:16 /dev/mfid0s1g crw-r----- 1 root operator 0, 86 Dec 14 13:16 /dev/mfid1 But devices.c lists the major as: { DEVICE_TYPE_DISK, "mfid%d", "LSI MegaRAID SAS", 254, 65538, 8, 4 }, I'm pretty sure neither 254 and/or 32/85 are match the major on the boot/install MFS kernel. They don't seem to be related, yet when i screw with struct{} _devname, I break device detection, so it is still used in some way. I'm fuzzy on how these M/M are used in FreeBSD -- I missed the whole auto-magic assignment period during the 5x days.