-------------------- AmigaOS 3.1.4.(1) project -----------------------

Changes for 45.1 (26.5.2018)

- CrossDos is for bizarre reasons a two-level filing system which 
  handles some packets at a first level, but starts a side-thread for 
  most other packets. This requires two levels of indirection, hence 
  an unnecessary slow down. This has been eliminated in this version.

- Added preliminary support for TD64, NSD64 and direct SCSI.

- Added support for additional mount flags to indicate superfloppies
  (one single partition), SCSI direct, and NSD suppression.

- Removed the startup magic, replaced by native C code.  

- Recompiled with SAS/C 6.

Changes for 45.2 (11.4.2018)

- Fixed direct SCSI, using wrong endianness.

- Fixed TD64 access, using wrong commands.

- Fixed geometry computation with direct SCSI.

- Handling of superfloppies with MSH\0 as DOS type was broken.
  Actually, CrossDos depends for MSH files on precise device names
  corresponding to partition names. This is now disabled for
  superfloppies.

- Added a couple of sanity checks for disk formatting. Strangely,
  crossdos allowed partition geometries that did not fit into the
  PC Bios bootblock and hence could have messed the disk.

- Retired the second layer completely.

- Moved all non-constants out of the data segment, making Crossdos
  re-entrant.

- Currently, the resident structure is lost, hence Crossdos can no
  be longer made ROM-resident. Probably not much a loss....

- Aligned elements in the file-system structure. Why this structure
  is needed in first place is beyond me, there is only one and it
  is global. *sigh*

Changes for 45.3 (11.4.2017)

- Removed a lot of the useless "fsys" references, the code goes now
  directly to the data structure in memory without further reference.

- TD_GETGEOMETRY data overrides now data computed through SCSI 
  commands, similar to how the FFS handles it.

- Formatting re-reads the geometry data for superfloppies

- All previous versions had a desasterous bug in Read(). If any read
  was broken up due to MAXTRANSFER, the cluster index was not 
  incremented correctly.

- MASK is probably not supported correctly right now, and probably was
  never. *sigh*
  
Changes for 45.4 (14.5.2017)

- Too many.

- Added support for long file names (VFAT)

- Added support for FAT32.

- Removed dummy object handling code.

- Fixed identification of FAT variants.

Changes for 45.10 (24.5.2017)

- Too many, the file system was turned upside down.

- Read/Write/Seek/SetFileSize are now asynchronous and handled by 
  coroutines. This should make the file system much more responsive 
  than before.

- Fixed multiple bugs in Write such as:
  Not releasing clusters in case bursting failed due unavailability of 
  contiguous cluster, overwriting old data in case writing into the 
  middle of a block in an old file, I/O being massively inefficient by 
  unnecessary reads.

- Fixed SetFileSize which was massively inefficient by using unaligned 
  accesses, and not releasing clusters properly when allocation 
  failed.

- Fixed Seek not setting the previous cluster correctly, hence 
  corrupting internal data structures.

- Read was massively inefficient (though probably correct, hurray!)

Changes for 45.11 (24.5.2017)

- Added sanity checks in the bootblock parser, the code no longer 
  attempts to mount a disk with parameters that look "too wierd", e.g. 
  with #FATs < 2 or sectors per cluster not a power of two.
  
Changes for 45.12 (26.5.2017)

- Putting a lot of larger temporaries on the heap if possible as the 
  stack size is really a bit tight.

Changes for 45.13 (26.8.2017)

- CrossDos is now also responsible for the DosType FAT for 
  compatibility with the FAT95 handler.

Changes for 45.14 (12.1.2018)

- ACTION_NAME_FROM_LOCK passed ARG3 instead of an empty string to 
  OpenFile() and thus might have caused a hit. This looks like an old 
  bug that was just undetected.

Changes for 45.15 (17.6.2018)

- The SCSI replacement for TD_GetGeometry had a bug and did not use 
  the Rigit Disk Page in the proper way.

Changes for 45.16 (15.7.2018)

- The SCSI replacement for TD_GetGeometry had yet another bug in 
  because it run the loop for determining the disk geometry in the 
  wrong order.

Changes for 45.17 (3.8.2018)

- Switching between DirectSCSI geometry information and trackdisk 
  style was not quite consistent and aligned with the recommended best 
  practise. This has been fixed.
  
Changes for 45.18 (8.10.2018)

- Removed a security check for the FAT position for FAT32 as 
  apparently here the FAT can grow a lot larger.

- Fixed a wrong check for the root dir in ExNext().

- Fixed a hang on really long file names.

- Reorganized the FIB of CrossDos to support file names up to 108 
  characters.

Changes for 45.19 (22.10.2018)

- The need for switching to a 64-bit command style is now re-evaluated 
  after re-loading the boot block.

Changes for 45.20 (18.11.2018)

- CrossDos now also evaluates the lower 8 bits of the DosType if the 
  DosType is FAT to determine the partition number. Note that this is 
  not recommended as the DosType is also used to locate a file system 
  in the FileSystem resource and hence may require to keep multiple 
  identical nodes in the resource just to be able handle partitions.

Changes for 45.21 (29.12.2018)

- Apparently, the Poseidon / usbscsi.device crashes or hits on an 
  TD_SEEK command, which was only used as a bug workaround for the v37 
  CBM scsi.device. Since this is V45, the workaround did more harm 
  than good, and thus was removed.

- The RDB boot block scanner inserted the partition bounds into the 
  disk environment, but used the same variables for re-scanning for 
  the boot block after a disk-change, which clearly did not work. The 
  disk start block is now taken from the file system backup instead.

Changes for 45.22 (5.1.2019)

- When initializing a FAT32 volume, the code forgot to re-compute the 
  FAT position and thus overwrote the just created boot block.

- Apparently, the omniscsi.device does not return a proper state for
  TD_CHANESTATE, even after an TD_ADDCHANGEINT. So the workaround from 
  before 45.21 is re-enabled, but this time with a CMD_READ instead of 
  a TD_SEEK to avoid a crash with the usbscsi.device.

Changes for 45.23 (3.2.2019)

- Attempting to go to the parent directory of the root directory 
  returned an incorrect error code. It now returns 
  ERROR_OBJECT_NOT_FOUND.
  
Changes for 45.24 (3.3.2019)

- In case the disk is removed while reading the FAT, FAT entries now
  return FAT_BAD to indicate that the file cannot be read.

- The upper nibble of FAT32 FAT entries is now ignored as it should.

Changes for 45.25 (9.3.2019)

- Due to an oversight, the FAT reader was completely broken.... 
  Tsk,tsk.

Changes for 45.26 (12.3.2019)

- In case the long file name contains a character outside of the 
  ISO-Latin code space, the file system now falls back to the short 
  (regular) name.

Changes for 45.27 (16.3.2019)
- The FAT reader was still broken... Tsk,tsk...

Changes for 45.28 (17.3.2019)

- As by user request, we're back to long file names all the way.

Changes for 45.29 (24.3.2019)

- CrossDos now reverts the TD64/NSD command style for reading the 
  bootblock, and adjusts the style again prior reading the partition 
  map to allow extended partitions that start beyond the 4GB barrier.
  
- In addition to the current convention of using C,D,E and so as last 
  letter of the device name to indicate the partition, CrossDos now 
  also supports digits 0 to 9 to indicate the partition number.

Changes for 45.30 (31.3.2019)

- The code for identifying a partition/superfloppy from the 
  environment vector has been unified.
  
- The FAT95 partition identification through the DosType count from 1 
  up, apparently, not from 0 up. Note that this is still a bad idea.
  
- The DosType check excluded FAT95 dos types.

Changes for 45.31 (4.4.2019)

- In case a directory that is part of a file name could not be found, 
  CrossDos did return the error ERROR_DIR_NOT_FOUND. While this seems 
  plausible, some tools, notably lzx, do not handle this case 
  correctly. In particular, recursive directory expansion does then 
  not work.

- Previous versions of CrossDos could trigger file translations by 
  including [ or ] as magic characters in the file name. 
  Unfortunately, these characters are valid characters as part of a 
  long file name, so cannot be used for this purpose. In the rare 
  cases you need translation, use the commodity instead.

- If a path contained a file instead of a directory as middle 
  component, the code reported the wrong error code.

- If a path contained a colon, the file name scanner did not start 
  scanning at the root directory.

Changes for 45.32 (6.4.2019)

- Back to short file names if the long name contains non-ISO-Latin 
  characters all again. This ensures at least unique file names.

- The previous version always created a long name, even if none was 
  required. This wasted directory space.

- In case a long name is created, it is now ensured that its short 
  name always includes a ~ to indicate that it has been shortened.

- Files ending on ".INF" and ".BAC" always get a long name now, to 
  distinguish them from ".info" and ".backdrop" which can also be 
  generated from short-names only ending on ".INF" or ".BAC", for 
  compatibility reasons.

- The function that created a unique file name for a long name did not 
  take an already present file name counter after ~ into account, thus 
  potentially creating conflicts. This has been fixed.

- In case a file with only a short file name was erased, the long file 
  name of the file above was erraneously erased as well.

- The file name conversion functions have been a bit finetuned and 
  speed up.

Changes for 45.33 (8.4.2019)

- Due to an off-by-one error, short file names with exactly 8 
  characters in the file name were not accepted.
  
- Special support for .backdrop files has been removed as the file 
  name starting with a dot is not valid as short name anyhow.

- File names ending with a . now also get a long file name as the 
  terminating dot of a short file name would be cut off.

- File names with non-ASCII-characters are now also accepted as short 
  file names. Rules are now somewhat bizarre due to the non-Latin FAT 
  system. If no translation table is in place, all ISO-Latin 
  lower-case characters trigger a long file name immediately, which is 
  then UTF-16 encoded. Otherwise, the check is made on the output of 
  the table. If this is ASCII lower-case, DOS would convert it to 
  upper case, and as this is not requested, a long file name is then
  requested as well.

- The short file fallback name was not always created properly; it is 
  now ensured that the ~ is inserted behind the last non-blank 
  character of the base name, or the latest position possible.
  
Changes for 45.34 (11.4.2019)

- The upper/lower case conversion now extends to the full character 
  set, though depends now on the correctness of the conversion tables 
  that need to translate upper case characters to upper case and vice 
  versa.

Changes for 45.35 (15.4.2019)

- If a lower-case version of the file name in capitalized form fits 
  into the 8+3 short file name, this version no longer creates the ~ 
  extension of the short name as the short name can match the long 
  name without any changes.

- A .INF file is now again overwritten by a .info file that fits name 
  same base name.

Changes for 45.36 (29.6.2019)

- In case a medium is removed at the wrong time, a hit could have been 
  caused by accessing the cache which is, at this point, no longer 
  present.

------------------------ AmigaOS 3.2 project ------------------------

Changes for 45.37 (5.10.2019):

- ACTION_DIE triggered a rather questionable RemDevice() of the 
  hosting device. Instead, the device will be flushed as soon as we 
  run low on memory.

Changes for 45.38 (14.11.2019):

- ACTION_PARENT returned the wrong result code for going into the 
  parent directory of root. It should return 0 then.

Changes 45.39 (18.6.2020)

- Added "trackfile.device" as yet another device driver which maybe
  won't crash on receiving a TD_GETGEOMETRY command.
