[comp.sys.amiga.tech] ACTION_DISK_CHANGE

nordmark@nada.kth.se (Arne Nordmark) (11/13/88)

The AutoDiskChange program that appeared in .binaries recently
doesn't seem to work on an A2000 with one internal and one external floppy.
Only the internal drive (unit 0) notices when you change disks.
You still have to manually DiskChange the external drive (unit 2).

The reason is that there is *no* unit 1!
And the program requires (of some obscure reason) that the units must
be "in order", i.e. You can have unit 0,1 or unit 0,1,2 but not 0,2.

I have written a replacement program which handles all configurations
of drives, but I can't find the documentation for the packet
ACTION_DISK_CHANGE anywhere.

I disassembled ARPs DiskChange command, but to my suprise it doesn't
use that packet at all! Instead it sends two ACTION_INHIBIT packets,
one to inhibit the drive, and one to turn it on again.

I now use this ARP kludge in my AutoDiskChange and it works ok.
But it doesn't work well with programs like Format and DiskCopy which
inhibit the drives themselves, they get seriosly messed up.

So I would really appreciate if some helpful person could give me
a description of how you use the ACTION_DISK_CHANGE packet.

Thank you for you help!

- Gunnar

SNAIL: Gunnar Nordmark          VOICE: (+46) 8 - 755 42 52
       Nora strand 5
       S-182 34 DANDERYD        EMAIL: gno@stacken.kth.se
       SWEDEN                          gno@SESTAK.BITNET

"Words, words, words."  William Shakespeare