My posts here arrive back to me with a great delay of a couple of days (!) but I hope it improves!
EJECT.EXE from PC-DOS 7 (2000) works on MS-DOS 7.10 but not in our current kernel. EJECT H: says "Invalid drive". I analysed what's going on using SoftIce (what else?! ;-) and found out the following. EJECT issues an Open FCB (AH=F) Int 21h call with the following extended FCB:
FF 00 00 00 00 00 00 08-43 4F 4E 20 20 20 20 20 (08 = CD-ROM drive number, 43 4F 4E = "CON") 20 20 20 00 00 00 00 00-00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00-00 00 00
MS-DOS doesn't access the CD-ROM drive (it doesn't spin up), succeeds immediately returning AL=0, and fills in the extended FCB in the following way:
FF 00 00 00 00 00 00 08-43 4F 4E 20 20 20 20 20 20 20 20 00 00 80 00 00-00 00 00 45 30 3D 53 00 53 C2 00 AE E2 00 00 00-00 00 00
However, FreeDOS accesses the CD-ROM drive (it spins up), some time passes (probably searching for a file there), and fails returning AL=FF and doesn's fill anything.
I tried the same with normal (not extended FCB) and the results are the same. My conclusion is that while MS-DOS doesn't try to open a H:CON file but opens the CD-ROM device driver instead, which succeeds, FreeDOS tries to access a H:CON file on the CD-ROM and fails. I suspect the dosfns.c:IsDevice() function. It probably "thinks" that this is a filename and the kernel tries to open it as a filename, whereas it should detect this as a device and the kernel must then open H:.
Lucho
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Freedos-kernel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freedos-kernel
