Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 19:43:31 +0200
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        freebsd-arch@FreeBSD.org
Subject:   Accessing disks via their serial numbers.
Message-ID:  <20060624174331.GB2134@garage.freebsd.pl>

next in thread | raw e-mail | index | archive | help

--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/<driver>/<serial> or /dev/disk/<serial>).

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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060624174331.GB2134>