The Eject() function has byte 4 set to 0 so STOP is the default behavior,
right?
CDB[0]=0x1b;
CDB[1]=CDB[2]=CDB[3]=CDB[4]=CDB[5]=0;
if (SCSI_ExecuteCommand(fd,Input,&CDB,6,NULL,0,&RequestSense) != 0) {
return -1; /* could not do! */
}
Do I need a separate function for adding the eject option or can I just
add CDB[4]=0x02; and recompile ?
Or is there a patch for mtx I can just apply?
--------------------------------------------------------------
James S. White GAPS Incorporated
james@jameswhite.org Electrical Engineer - Etc.
http://www.jameswhite.org Caffeine is my anti-drug.
--------------------------------------------------------------
I can picture in my mind a world without war, a world without hate.
And I can picture us attacking that world, because they'd never expect it.
-Jack Handy
On 15 Sep 2003, Dan Dennedy wrote:
> On Sun, 2003-09-14 at 02:24, James S. White wrote:
> > I finally got the powerfile c200 jukebox to change disks. But now I cannot
> > mount drives in the jukebox. Whenever I "mount /dev/scd0 /dvd/0" I get a
> > "mount: No medium found" and the following in the kern.log:
> >
> > Sep 14 01:06:17 discovery vmunix: cdrom: open failed.
> >
> > Neither drive will mount on the jukebox under linux, but the same disks will
> > mount when the jukebox is attached to a windows box running Powerfiles Media
> > Explorer.
> >
> > I also compiled 2.4.22 with the subversion snapshot tarball:
> > http://www.linux1394.org/viewcvs/ieee1394/branches/linux-2.4/ieee1394_2.4.tar.gz?tarball=1 from Sep 13 and had the same results.
> >
> > Does anyone have any insights on this?
>
> You need to send a SCSI START_STOP_UNIT request with the eject option to
> make it recognize new media. Then, send the same request as is (stop
> unit?) to spin-down the media before transfering it out of the drive. If
> you use the mtx utility, look at the mtxl.c:Eject() function. Set byte 4
> to 2 for the eject option or set byte 4 to 0 for the stop option.
>
>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
mailing list Linux1394-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux1394-user
Received on Mon Sep 15 17:14:40 2003
This archive was generated by hypermail 2.1.8 : Mon 02 May 2005 - 09:16:44 CEST