From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 07:58:54 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3531E106566C for ; Mon, 29 Aug 2011 07:58:54 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id E83918FC17 for ; Mon, 29 Aug 2011 07:58:53 +0000 (UTC) Received: by ywo32 with SMTP id 32so5420999ywo.13 for ; Mon, 29 Aug 2011 00:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version:content-type; bh=BcatZ7fjLmSEvc6P4naAdZugoZiA08VZM6YVcdcIJD0=; b=WnwSjdrIbwXFA1otueUkke1eHnqJfO/a4IZJpgKNI9jVJiKinE3iZhUBCBCQRvkdO/ Wj3WyK5u15b4fSO9xg0R0sEq7wqnA4ohLontxNJ0cWAnmZZhXy/zIjkhrjVr5KExRr4F GR2tBOUTWL91Y4WX+sGYpImag34cAZpP7fivA= Received: by 10.43.47.202 with SMTP id ut10mr4795312icb.424.1314604733007; Mon, 29 Aug 2011 00:58:53 -0700 (PDT) Received: from c-24-6-49-154.hsd1.ca.comcast.net (c-24-6-49-154.hsd1.ca.comcast.net [24.6.49.154]) by mx.google.com with ESMTPS id es8sm2316581ibb.19.2011.08.29.00.58.51 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 29 Aug 2011 00:58:51 -0700 (PDT) Date: Mon, 29 Aug 2011 00:58:49 -0700 (PDT) From: Garrett Cooper To: Roger Genre In-Reply-To: <4E5B3B71.50203@orange.fr> Message-ID: References: <4E5B3B71.50203@orange.fr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: hd numbering in 9.0beta1 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2011 07:58:54 -0000 On Mon, 29 Aug 2011, Roger Genre wrote: > Hi everybody, > > I would point out a problem related with the new way, coming in 9.0, to hard > disks numbering. > > As far I remember (5.0 ?), hardware detection of H.D.'s at O.S. boot-up > numbered every channel potentially able to attach a disk to, and tagged the > disks really attached with the number of his control channel; the sequence > (from lowers to highers numbers) begins with scsi or scsi-like (e-sata, usb, > fire-wire,...) controllers and ends with the controllers directly depending > from the chipset (sata at this time). > > Such strategy allows to attach easily a new mass-storage device without > modifying the disks numbering and thus the relevant fstab files. > > 9.0beta1 use a different numbering strategy,(with a similar sequence in > harware detection) tagging succesively detected disks with adjacent numbers. The best way I can put it has already been noted in the archives several months back: - http://lists.freebsd.org/pipermail/freebsd-current/2011-April/024110.html - http://lists.freebsd.org/pipermail/freebsd-current/2011-May/024495.html - http://lists.freebsd.org/pipermail/freebsd-current/2011-April/024233.html I don't have the corresponding commits right now, but I could dig them up as they spawned a large discussion thread as well. The basic gist is that several folks agreed that: 1. GEOM/UFS labels were the only way to go. 2. There are some caveats to using GEOM labels that discourages use as a means of deterministically determining mountpoints. 3. A compatibility shim was added for ata -> atacam transitioning; see kern.cam.ada.legacy_aliases in /sys/cam/ata/ata_da.c Cheers, -Garrett