From owner-freebsd-arch@FreeBSD.ORG Sat Jun 24 17:46:25 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 DCF7E16A492 for ; Sat, 24 Jun 2006 17:46:25 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E34643D5E for ; Sat, 24 Jun 2006 17:46:23 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 0286751814; Sat, 24 Jun 2006 19:46:21 +0200 (CEST) Received: from localhost (dlj212.neoplus.adsl.tpnet.pl [83.24.39.212]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id A23995131F for ; Sat, 24 Jun 2006 19:46:16 +0200 (CEST) Date: Sat, 24 Jun 2006 19:43:31 +0200 From: Pawel Jakub Dawidek To: freebsd-arch@FreeBSD.org Message-ID: <20060624174331.GB2134@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5I6of5zJg18YgZEa" Content-Disposition: inline X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: 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: Sat, 24 Jun 2006 17:46:25 -0000 --5I6of5zJg18YgZEa Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I'd like to extend glabel(8) to create providers related to disks based on their serial numbers and everntually driver name. For example disk ad0 could also be accessed via /dev/disk/ata/3JX0LMGA (/dev/disk// or /dev/disk/). I want to discuss mechanism for obtaining such informations. Currently, when disk(9) KPI is used, BIO_GETATTR requests are not passed down to the disks. We can eventually change this, but probably use additional method (not d_strategy). We can also not pass enitre bio structure, but only attribute name and buffer for the data. This is also good time to think of other informations we would like to export using such mechanism, so we know it will be flexible enough to handle them. It could be eventually useful to be able to ask the disk which attributes it has, so we can fetch them in a loop. With BIO_GETATTR we don't know which attributes provider can return. Comments, ideas? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --5I6of5zJg18YgZEa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFEnXnDForvXbEpPzQRAlLUAJ9P0kRP2VYVR6JipLLc30DS6iIA3QCfWDwF Vkp8Ju3zROw+sdIR8jDsy6M= =tAbB -----END PGP SIGNATURE----- --5I6of5zJg18YgZEa--