----------------------- AmigaOS 3.2.1 project ------------------------

Eject 47.1 (24.10.2021)

- First draft version which might actually not crash when you try to use it.

- Still needs documentation.

- Still needs Workbench tool support.

- Still needs scsi.device command support.

- Still needs integration into Workbench itself.


Eject 47.2 (25.10.2021)

- Added Workbench tool support.

- Added scsi.device command support.


Eject 47.3 (26.10.2021)

- Reworked so that it will not necessarily crash immediately.

- Added code comments as needed, shaken & stirred.


Eject 47.4 (27.10.2021)

- Fixed use-after-free cleanup code bug. Ouch.

- Now considers 2nd.scsi.device, 3rd.scsi.device, 4th.scsi.device,
  5th.scsi.device, 6th.scsi.device, 7th.scsi.device and 8th.scsi.device
  as equivalent to scsi.device in terms of functionality. We shun
  9th.scsi.device for petty reasons, of course: scsi.device does not
  make use of it.

- We now collect all likely devices/units before we decide to
  eject the media associated with them instead of filtering out
  the candidates which are unsuitable. This is now delayed until
  the eject commands sent or skipped. The idea is to add a verbose
  output or debug mode which will print the candidates and,
  if necessary, state why they are not used.


Eject 47.5 (27.10.2021)

- Now only ejects a medium if tests indicate that there is one.
  This means that CD-ROM drives and the like will not extend their
  respective empty trays if instructed to eject the medium.

- Changed how the SCSI medium eject procedure works so that it
  should less likely fail to eject the medium.

- Expanded the list of known and supported SCSI device drivers by
  1230scsi.device, blizzppc.device, cyberscsi.device, cybppc.device,
  dkbscsi.device, gvpscsi.device, omniscsi.device, pbscsi.device,
  uaescsi.device, usbscsi.device and warpdrive.device. More
  candidates are welcome :-)


Eject 47.6 (27.10.2021)

- The ejection function now checks first for SCSI devices if they
  support removable media and if there is a medium present. Similarly,
  a test is made for trackdisk.device-like devices if there is a
  medium is present. If these conditions are met, the file system is
  taken offline and the eject command is sent. Then the file system is
  switched back into normal operations.
  
  Previously, taking the file system offline done first, followed
  by the tests, etc.


Eject 47.7 (28.10.2021)

- Added AutoDocs for the command.

- Added special code which identifies names of volumes to be ejected.
  With the new code in place, all volumes which share the same name
  will be ejected instead of just a single random one which happens to
  be the first entry in the global DOS list of devices, volumes and
  assignments.


Eject 47.8 (28.10.2021)

- Added "2060scsi.device" and "oktagon.device" as further known-good
  SCSI device drivers.

----------------------- AmigaOS 3.2.3 project ------------------------

Eject 47.9 (31.10.2021)

- Added "dracoscsi.device" as another known-good SCSI device driver.

- Updated the documentation to stress that the Eject command is focused
  on enabling the safe ejection of storage media from its enclosure by
  mechanical means, with virtual storage devices such as trackfile.device
  as the exception. Eject is a specialized tool and not intended to be
  used for unmounting Amiga file system volumes.


Eject 47.10 (31.10.2021)

- Added support for override files in ENV:sys/eject/trackdisk and also
  ENV:sys/eject/scsi, respectively. Still untested, so keep your
  fingers crossed for the time being ;-)


Eject 47.11 (31.10.2021)

- Now actually processes the control files correctly (always nice).

- Simplified the setup for processing the two different kinds of
  devices (with trackdisk characteristics or scsi characteristics).

- Error and warning messages produced when processing the control
  files is now a bit less chatty and remains specific as to when
  and what went wrong.

- Duplicate entries in the control files are now silently
  ignored. Which might be a problem in the future :-/


Eject 47.12 (27.2.2025)

- Updated the list of device driver names that are embedded in
  the program. They now include a4091.device and lide.device.

- Added the option to print the list of the device driver names
  which are embedded in the Eject command.

- Added local is_blank() and is_space() functions which are used
  when processing the device name override files.
  
- Updated the documentation.


Eject 47.13 (27.2.2025)

- If the SHOWDEVICENAMES option is in effect, then no PATH argument
  is needed. If the SHOWDEVICENAMES is not used, the Eject command
  will print an error message to complain about the missing argument.

- Reformatted the documentation.


Eject 47.14 (27.2.2025)

- "eject df0:" did not work as intended. Fixed.
