From owner-freebsd-arch@FreeBSD.ORG Mon Jun 26 09:16:22 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org 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 01E7F16A4DF; Mon, 26 Jun 2006 09:16:22 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E95C443C6; Mon, 26 Jun 2006 08:50:14 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id D63C21703F; Mon, 26 Jun 2006 08:50:12 +0000 (UTC) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Mon, 26 Jun 2006 09:15:42 +0100." <20060626090937.U24406@fledge.watson.org> Date: Mon, 26 Jun 2006 08:50:09 +0000 Message-ID: <44889.1151311809@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: John-Mark Gurney , Pawel Jakub Dawidek , freebsd-arch@freebsd.org Subject: Re: Accessing disks via their serial numbers. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jun 2006 09:16:22 -0000 In message <20060626090937.U24406@fledge.watson.org>, Robert Watson writes: >Yes -- one of the problems/benefits of the disk(9) API is that it's a very >narrow API. I'd like to see an attribute API pushed into disk(9) so that GEOM >modules can query additional disk properties in much the same way they can >query GEOM attributes. I'm not against this, I just don't want to do it more than once :-) >GEOM univerally provides similar >guarantees, such as sectorsize not changing. Media size is a slightly more >dubious one, of course, and probably should become variable. Mediasize and sectorsize are only (required to be) constant while the device is held open. -- 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.