Re: ATA mkIII first official patches - please test!

From: Maxim Konovalov <maxim_at_macomnet.ru>
Date: Sat, 5 Feb 2005 23:32:42 +0300 (MSK)
On Sat, 5 Feb 2005, 21:06+0100, S?ren Schmidt wrote:

> Maxim Konovalov wrote:
> > On Thu, 3 Feb 2005, 21:52+0100, S?ren Schmidt wrote:
> >
> >
> > > ATA-mkIII first official snapshot.
> >
> >
> > On my Sony VAIO PCG-505BX ioctl(CDIOEJECT) (cdcontrol eject) returns
> > EOPNOTSUPP.
>
> Thanks! I accidentally removed a line in atapi-cd.c, please try
> below patch it should fic the problem.
>
> --- atapi-cd.c  2005/02/03 15:23:35     1.15
> +++ atapi-cd.c  2005/02/05 19:59:54
> _at__at_ -134,6 +134,7 _at__at_
> cdp->block_size = 2048;
> device_set_ivars(dev, cdp);
> ATA_SETMODE(GRANDPARENT(dev), dev);
> +    acd_get_cap(dev);
> g_post_event(acd_geom_attach, dev, M_WAITOK, NULL);
>
>      /* announce we are here */

# make unload load && cdcontrol eject && echo 'It works, thanks'
/sbin/kldunload -v atapicd.ko
Unloading atapicd.ko, id=25
/sbin/kldload -v /usr/src/sys/modules/ata/atapicd/atapicd.ko
Loaded /usr/src/sys/modules/ata/atapicd/atapicd.ko, id=25
It works, thanks

-- 
Maxim Konovalov
Received on Sat Feb 05 2005 - 19:32:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC