From owner-freebsd-current@FreeBSD.ORG Tue Apr 26 21:52:29 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 3B6BC106564A for ; Tue, 26 Apr 2011 21:52:29 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id B596D8FC15 for ; Tue, 26 Apr 2011 21:52:28 +0000 (UTC) Received: by bwz12 with SMTP id 12so1307344bwz.13 for ; Tue, 26 Apr 2011 14:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:message-id:date:from:user-agent :mime-version:to:subject:references:in-reply-to:x-enigmail-version :content-type:content-transfer-encoding; bh=e4M+zeAasgQAd4A1/pgpYm/Y2wIseCksQwJ1pgPpY9g=; b=cMZxwKp7+GgsWkBn+v5VLa5Cp4rXbgZfbDIwKfbE6d8U9h/6pZYrtiqFa8Txteblt+ rBmK4Gwsopj4OiW9oL7DxGMbyDAIo8OgcOR0APgUzpJiIXqZ4ZU8vksRXWs+caPFPgcy VxSmPj99sgdsIeQoYcEYZ6sLvYOvhL0p9wotI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=VtqlYJf90kC0baYdCWOWY2m9pvpJWrvT9QuHwWRdCCU49ATYrDwVHzuJDjtl8p5+fL U3ZZvZVUX5qrsh355x/lrHy1+XYr+lVGt+GqqWTY+2PC2RIWliffB5jMfx+iildKm2PT QKsOHOUDzqhrvJGrqriHpQ/m7seiI6plGde0g= Received: by 10.204.83.129 with SMTP id f1mr1229919bkl.29.1303854747480; Tue, 26 Apr 2011 14:52:27 -0700 (PDT) Received: from mavbook2.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 16sm74649bkm.6.2011.04.26.14.52.25 (version=SSLv3 cipher=OTHER); Tue, 26 Apr 2011 14:52:26 -0700 (PDT) Sender: Alexander Motin Message-ID: <4DB73E93.3010209@FreeBSD.org> Date: Wed, 27 Apr 2011 00:52:19 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Arnaud Lacombe , FreeBSD-Current References: <4DB58753.6020605@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Old ATA disk names emulation [Was: Switch from legacy ata(4) to CAM-based ATA] 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: Tue, 26 Apr 2011 21:52:29 -0000 Arnaud Lacombe wrote: > Hi, > > 2011/4/25 Alexander Motin : >> Kostik Belousov wrote: >>> On Mon, Apr 25, 2011 at 03:26:02PM +0300, Alexander Motin wrote: >>>> Andrey V. Elsukov wrote: >>>>> On 25.04.2011 14:23, Alexander Motin wrote: >>>>>> What will not work: >>>>>> - old device names won't be seen inside GEOM, so users who hardcoded >>>>>> provider names in gmirror/gstripe/... metadata (not the default >>>>>> behavior) are still in trouble. >>>>>> - patch mimics ATA_STATIC_ID behavior, if user had custom kernel >>>>>> without it, he should update device names manually. >>>>>> - it won't work for users with hot-unplugging ATA controllers (not >>>>>> devices), but I believe it is really rare case. >>>>>> - low-level tools, such as smartmontools, won't be able to work with >>>>>> alias devices, as background ada driver doesn't implements legacy >>>>>> ioctls. May be I could partially fix this. >>>>>> >>>>>> Except those, I think this patch should work for the most of users. >>>>>> >>>>>> Any more objections/ideas? Is this an acceptable solution? >>>>> what about new GEOM class? You can create new class instance after >>>>> disk_alloc(), attach it to the new disk and create provider with old-style >>>>> name. It seems this class will be very simple. >>>> It sounds like less dirty option. I'll try it. Thank you. Won't >>>> re-providing exactly the same device into GEOM create some problems? >>>> glabel and co will connect to each of them (original and legacy) and >>>> report two equal sets of labels. >> I have implemented it by adding one more specialized glabel submodule: >> http://people.freebsd.org/~mav/legacy_aliases_geom.patch >> > so far, so good, with that patches on 2 different machine with > different ATA mapping (one was detected as ad0, the other ad6). I only > tested the first patch on a single machine (was ad0), worked too. Thank you! First patch went to HEAD. -- Alexander Motin