Old ATA disk names emulation [Was: Switch from legacy ata(4) to CAM-based ATA]

Andrey V. Elsukov bu7cher at yandex.ru
Mon Apr 25 12:02:10 UTC 2011


On 25.04.2011 14:23, Alexander Motin wrote:
> What will not work:
>  - old device names won't be seen inside GEOM, so users who hardcoded
> provider names in gmirror/gstripe/... metadata (not the default
> behavior) are still in trouble.
>  - patch mimics ATA_STATIC_ID behavior, if user had custom kernel
> without it, he should update device names manually.
>  - it won't work for users with hot-unplugging ATA controllers (not
> devices), but I believe it is really rare case.
>  - low-level tools, such as smartmontools, won't be able to work with
> alias devices, as background ada driver doesn't implements legacy
> ioctls. May be I could partially fix this.
> 
> Except those, I think this patch should work for the most of users.
> 
> Any more objections/ideas? Is this an acceptable solution?

Hi,

what about new GEOM class? You can create new class instance after
disk_alloc(), attach it to the new disk and create provider with old-style
name. It seems this class will be very simple.

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110425/1b238800/signature.pgp


More information about the freebsd-current mailing list