Accessing disks via their serial numbers.

Poul-Henning Kamp phk at phk.freebsd.dk
Mon Jun 26 09:16:22 UTC 2006


In message <20060626090937.U24406 at 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 at 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.


More information about the freebsd-arch mailing list