Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Feb 2005 23:32:42 +0300 (MSK)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        =?ISO-8859-1?Q?S=F8ren_Schmidt?= <sos@DeepCore.dk>
Cc:        'FreeBSD Current' <freebsd-current@freebsd.org>
Subject:   Re: ATA mkIII first official patches - please test!
Message-ID:  <20050205233053.I57868@mp2.macomnet.net>
In-Reply-To: <42052747.7000102@DeepCore.dk>
References:  <42028F29.1030801@DeepCore.dk> <20050205192139.P54165@mp2.macomnet.net> <42052747.7000102@DeepCore.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> @@ -134,6 +134,7 @@
> 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



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