Accessing disks via their serial numbers.

Pawel Jakub Dawidek pjd at FreeBSD.org
Sat Jun 24 17:46:25 UTC 2006


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?

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20060624/2d27fb15/attachment.pgp


More information about the freebsd-arch mailing list