CDFileSystem 48.7 (18.2.2022)

- First version with a release notes file ;-)

- Reviewed and corrected the clib.c file contents, by comparing its function
  implementations with the lib.asm versions. Could have been better :-/

- Modest cleanup involving local variables used as loop counters, etc. which
  were defined as being 16 bit integers but should be 32 bit integers for the
  sake of code size and performance.

- Reformatted the multi-line comments which were so prevalent in the
  cdio.c, dir.c and file.c source code. This will hopefully pay off when the
  source code is reformatted at some point.

- Replaced bit-shifting by multiplication just to make the intention of the
  code clearer. We don't have to optimize things just yet, just make them
  easier to understand, if possible.

- MakePathTable() didn't even check if the allocation for the path table
  succeeded. Fixed.

- Now builds with the clib.c library code instead of the lib.asm code. I hope
  that this actually works as intended.


CDFileSystem 48.8 (18.2.2022)

- Identified more unused code and marked it as being unused by
  bracketing it between "#ifdef UNUSED .. #endif /* UNUSED */".

- There was still live debug code active for Debug3() which is now
  enabled through the D() macro wrapper.

- main.c/WaitPacket() no longer changes the QuickPackets variable
  before/after calling Wait(). The magic code which would rely upon
  this is not even part of CDFileSystem any more.


CDFileSystem 48.9 (18.2.2022)

- Now actually seems to work for the very first time ever in this
  slightly reduced form. Note that the clib.c code is not yet a
  viable replacement for the lib.asm code :-(


CDFileSystem 48.10 (19.2.2022)

- Figured out that the 'C' implementations of the CountPaths(),
  IndexPaths() and FindPathName() did not properly process the
  directory entry size. With these changes in place, CDFileSystem
  now seems to work correctly in its 'C' form.


CDFileSystem 48.11 (19.2.2022)

- Rewrote the code which would use the MUST() macro. The macro is sort
  of an assertion that has the effect of making the function return 0
  if the condition set by its parameter is not met. The replacement
  code now returns the correct type (NULL pointer or the integer
  value of 0) and also cleans up any resources, such as memory allocated,
  before returning.

- MakeCache() no longer leaks memory if any memory allocation made
  should fail.

- MoreCache() no longer assumes that it will succeed in allocating
  the cache. Worst case prior to these changes: stuck in Forbid()
  in an infinite loop :-(  The new code no longer frees the existing
  cache before trying to satisfy the new cache size request and
  will revert to keeping the old cache if no new cache of the
  requested size can be created.

- FreeElem() now checks if the memory pool pointer is != NULL, which
  is, arguably, important.


CDFileSystem 48.12 (19.2.2022)

- Now builds with the utillib option, which saves space for the SAS/C
  build because it no longer has to resort to its sc.lib integer math
  code.

- Some small manual code formatting changes for a bit more consistency
  between the original CDTV version and later changes made specifically
  for the CD32 build.

- Removed all the unused code and also the unused global data
  definitions associated with them, plus data which was not used
  at all in any way.

- InitCDIO() failing now cleans up after itself.

- Revived the missing WaitIO() calls which were apparently not
  necessary for the CD32 and its cd.device but might be just
  what makes the difference between not working and working for
  other devices, e.g. those which emulate a CD-ROM drive using
  a disk file.

- ExamineNext() is no longer permitted for the ZERO lock (this is
  an old and oddly consistent bug for many Amiga file systems).

- Replaced structure copies with CopyMem() calls so that the
  compiler does not feel obligated to add its own internal
  memcpy() calls. This saves code space.

- Switched back to using "#pragma syscall" interfaces for all the
  exec.library functions. This produces a shorter binary at practically
  no expense: this is a file system after all, it will not benefit
  from the little bit of performance improvements attainable through
  "#pragma libcall SysBase".

- Built some scaffolding for cleaning up after the memory allocations,
  the devices opened and the disk change interrupt installed, should the
  Main() function exit on its own accord, which it currently does not.
  Before that could happen, the lock and file memory pools would have to
  redesigned not to leak memory.


CDFileSystem 48.13 (20.2.2022)

- Removed dependencies on "std.h". The macros and types needed are now
  defined in "main.h".

- The ACTION_DISKINFO handling now requires a volume to be present if
  the ZERO lock is used. Previously, this requirement would exist only
  for standard FileLocks.

- Replaced non-standard constants and macros, so that DOSFALSE, DOSTRUE,
  BADDR() and MKBADDR() are used. These are technically identical to the
  DOS_FALSE, DOS_TRUE, BTOA() and ATOB() macros but there's some history
  and semantics behind their use.

- Reworked the code formatting and indentation to be more consistent.

- Dropped all the REG attributes for variables and parameters alike,
  which would have asked for them to be assigned to registers. This
  should no longer be needed.

- Replaced local 16 bit integer variable types with "int". Aztec 'C'
  was clever enough to make good use of these, but with ANSI 'C' and
  beyond it was no longer a given that the compiler would make the most
  of the opportunity.

- Replaced the use of the MIN() macro with the min() macro, which has
  some inline code optimizations behind it for SAS/C. This could save
  some code space.

- InitFileSys() no longer copies the exec device name to use, which
  might just be longer than the 32 character buffer assigned for it.
  Luckily, Kickstart 2.0 and beyond allow us to retain a pointer to
  the device name, since it's a NUL-terminated BCPL string.

- Added comments to bracket "#ifdef COMPLEX_CACHE" with
  "#endif /* COMPLEX_CACHE */" where needed, and also for other
  such constructs.

- Started to tag BCPL string buffers, which should not be expected to
  be 34 or 32 bytes in size.


CDFileSystem 48.14 (23.2.2022)

- Tagged more BCPL string buffers as type "CHAR", as used in
  function parameters.

- Replaced the inactive D() and DD() macros with ((VOID)0) which is
  safer than just leaving them as ";", which can cause no end of
  trouble when used in loops, etc.

- Fixed a handful of compiler warnings by adding (struct IORequest *)
  casts.

- Removed unused variables for good.

- Added CONST qualifiers to the parameters of all functions which
  qualified for it ;-)

- Added CONST qualifiers to local variables as needed.

- Reworked FindPathName() to behave more like the lib.asm implementation
  by checking the directory entry length against the name string length.
  This is indeed necessary because the name string is really a BSTR and
  may not be NUL-terminated after all.


CDFileSystem 48.15 (23.2.2022)

- Dropped even more unused global variables.


CDFileSystem 48.16 (23.2.2022)

- Switched over the packet dispatch to use "switch(..) .. case", which
  required some small changes in how the "actions.c" code works.

- Dropped more unused global variables.


CDFileSystem 48.17 (23.2.2022)

- Now accepts file, directory and volume names of up to 107 characters.

- Added code to curb buffer overflows when copying BCPL strings and
  directory record names.

- Mounting a volume requires that the entire process runs under
  Forbid(). Also, grabbing the first volume whose name and
  creation date matches is not OK. You also have to check if the
  volume is currently being used by a different file system.

- Amazingly, there were still some more unused global variables
  which could be dropped.

- Lost some more unused code.


CDFileSystem 48.18 (24.2.2022)

- Now it's finally safe to use "#include <proto/alib.h>" without
  bumping against certain preprocessor macros which used to be
  needed for rewriting the packet parameter addresses.

- Reusing an existing volume after a disk was removed now works
  again as intended. This is a bug fix for 48.17 which could not
  reuse its very own volume :-(

- UnMount() may call DeMount() which releases the memory allocated
  for the volume node. Updating the number of errors in the volume
  node should not happen when the volume has already been freed.

- The maximum size of the volume node name was still 34 characters.
  Its maximum size now matches the maximum file/directory name
  size.

- Removed comments which no longer reflect the implementation
  behaviour.


CDFileSystem 48.19 (24.2.2022)

- Small changes to make use of dos.library V36 packet handling
  functions which need not be implemented by this file system,
  like it had to be in the Kickstart 1.x days.


CDFileSystem 48.20 (25.2.2022)

- Replaced the special code which preprocesses directory
  entry names in order to make it easier to compare them
  regardless of upper/lower case with Strnicmp(), as
  needed. This appears to work correctly for the CD-ROM
  images I have tested so far. Note that the alternative
  is to use a preset comparison function which is not
  subject to the collation rules which apply to the
  locale.library Strnicmp() implementation.


CDFileSystem 48.21 (26.2.2022)

- The 'struct CDLock' is no longer an extended clone of the
  'struct FileLock' data structure but embeds the original
  'struct FileLock' and add its own peculiar data structure
  members.

- The number of buffers which may be changed by the
  "AddBuffers" command now follows the mountfile
  settings. Previously, the number of buffers was 2
  and could only be changed after mounting the volume.

  Note that the number of buffers actually controls
  the size of the CDFS data block cache. CDFileSystem
  has its own separate metadata block cache which is
  fixed to 8 entries.

- The memory type requirements for allocating sector
  data buffers now follow the mountfile settings. All
  the other memory allocations are still using the
  MEMF_PUBLIC|MEMF_CLEAR attributes.

- Replaced the local MakeVector() and FreeVector()
  wrapper functions with their AllocVec() and FreeVec()
  counterparts.

- CDFileSystem uses an extended volume data structure
  (or rather 'struct DeviceList') which is not really
  compatible with the standard volume data structure.
  This is why it now bears a signature and a version
  structure member by which CDFileSystem can identify
  whether a volume is safe to use. The volume now also
  includes a flag which indicates whether the volume is
  safe to reuse and not currently being in use.


CDFileSystem 48.22 (26.2.2022)

- Added support for shared and exclusive locks. Which is
  for API consistency, mostly. And just to be sure, the
  access mode, which goes into the lock, is checked first
  to see if it's consistent with shared or exclusive access.
  If it's neither, then it defaults to shared access. For
  good measure, locks on directories will always be shared
  locks.

- CDFileSystem no longer uses per file system Process private
  memory pools for the file locks and file handles it allocates.
  These could not have been shared by other instances of the same
  CDFileSystem version if a medium was removed and inserted into
  a different drive.

  The new approach is the "original" approach: use AllocVec()
  for all these data structures. The pools made good sense for
  the CDTV and CD32 alike, but not so much for a file system
  which could be used on multiple devices at the same time.


CDFileSystem 48.23 (26.2.2022)

- The search for the primary volume descriptor now stops if
  the first entry to fit the bill is found. Previous code
  still had a preference for finding a CDTV or CD32 specific
  primary volume descriptor along with an alternative which
  precedes it.

- The cache size is now limited to a maximum of 65535
  entries, just to make sure that the memory allocation
  for the cache entries does not produce an integer
  overflow.


CDFileSystem 48.24 (26.2.2022)

- Just in case the volume name should be empty, it will
  be replaced by "CD-ROM". An empty name would not work
  for an AmigaDOS volume.

- Both ACTION_PARENT and ACTION_PARENT_FH are now safe
  to use even if the current file system volume is not
  valid. Previously, memory would have been corrupted
  under these circumstances.


CDFileSystem 48.25 (27.2.2022)

- Rolled back the bits & pieces which replaced utility.library
  string comparison with the original character substitution
  table code. Which did little good, but then I knuckled down
  and spent altogether too much time trying to understand how
  the directory entry name comparison code and the path
  search code actually worked. Which showed what I had left
  out in my 'C' reimplementations. With the improved replacements
  the behaviour of CDFileSystem now again matches what version
  48.9 did well. I hope it will stay that way.

- Added the fundamental test required for Rock Ridge interchange
  protocol compatibility and feature testing: checking if the
  root directory supports the "System Use Sharing Protocol",
  which is part of "iso.c" for now but is not doing anything
  useful so far.

- My CountPaths() and IndexPaths() now make sure that no more
  than 65535 path table entries will be used. CDFileSystem
  cannot actually handle more that this number.


CDFileSystem 48.26 (28.2.2022)

- Removed the remainder of the old cache code, which had already
  been replaced by the "complex cache" in 1991. The old cache code
  has not been functional since the final changes to CDTV CD file
  system were made.

- Removed the CompDate() stub function.

- Both CountPaths() and IndexPaths() now limit the number of
  path table entries to 65535, if needed.

- The ScanDirBlock() function checked in every iteration of the
  main loop whether it was looking for a name or a key. Now these
  are two separate loops which only check what is needed in
  context.

- The Examine/ExNext code now sets proper entry type values for
  files, directories and volumes.


CDFileSystem 48.27 (28.2.2022)

- Let's try replacing the table-driven file/directory case
  insensitive comparison with what utility.library has to offer
  with Strnicmp() and ToUpper(). Caveats as before, for the previous
  attempt to make this work...

- Split up ScanDirBlock() into a function which scans for named
  directory entries and one which scans for a specific key.


CDFileSystem 48.28 (28.2.2022)

- Removed duplicate code from FindKey().

- NextFile() can be a little bit shorter. Also, the code which
  verifies that the file name which the last Examine/ExNext call
  planted has not changed might become a problem with Rock Ridge
  support enabled in the future :-(

- The code which "#define NO_FUNNY_ALIGNMENT" enables in file.c is
  here to stay because there's no alternative.

- Added debug code which uses kprintf() to print every Rock Ridge
  directory entry record for every file or directory you never
  knew would feature such things. This is disabled by default because
  it easily becomes annoying.

- Mount() now checks if the disc supports the System Use Sharing Protocol
  which the Rock Ridge Interchange Protocol depends upon and enables the
  use of this feature (which does not do that much yet).

- CopyLock() could trash the lock list for good if you attempted to make
  a copy of the NULL lock. Not that the NULL lock was to blame, but the
  fact that its copy would be created using MakeLock() on the root directory.
  That was a problem because it already added the lock to the volume lock
  list, and then did that again upon exiting. Fixed.


CDFileSystem 48.29 (1.3.2022)

- Stopping the I/O requests which were still filling the read-ahead
  cache was not entirely sound. Fixed.

- Directory scanning via Examine/ExNext could loop infinitely if the
  first directory entry was in fact identical to the same directory
  being scanned. This could happen for Unix CD-ROMs for which the
  "." and ".." directory entries would be present in every directory.
  CDFileSystem now handles this like many other Amiga file systems by
  tracking the state of the directory scanning progress in the
  FileLock which is passed to Examine/ExNext.

- The startup code had Kickstart 1.x compatibility issues owing to the
  use of FreeVec() for cleaning up the allocated memory. Fixed.

- Completed the feature set required for Rock Ridge support, including
  continuation record handling.

- The Rock Ridge "PX" record, which contains the POSIX file mode,
  information, was not processed correctly. The little endian
  representation of the 32 bit integer data had been used instead
  of the correct big endian version. Fixed.

- The last parameter passed to the ReadBlock() function was always FALSE,
  which means that cache reuse was always possible without any other
  conditions.


CDFileSystem 48.30 (3.3.2022)

- Adding, removing and finding volumes which belong to CDFileSystem is
  now done through the designated dos.library APIs. Because exclusive
  access to the global DosList comes with the risk of causing a deadlock
  special code had to be added just to make this work, increasing the
  size of the file system...

- Directory scanning state for Examine() and ExNext() is now tracked
  differently, with Examine() storing in the FileLock whether
  ExNext() can proceed at all. For example, ExNext() makes no sense
  for files.

- Turns out that the "Gateway 3" CD-ROM file system contains directory
  records to feature names which are neither "d-characters" nor
  "a-characters" (as per section "7.4 Character sets and coding" of
  ECMA 119). Fixing this is probably not going to happen until the
  Rock Ridge support is fully functional :-(

- ACTION_INHIBIT now results in a medium removal/insertion event to
  be sent if needed, including remounting the medium. Previously,
  the inhibit state change left the volume practically unchanged.

- Sending the medium change input event no longer involves the
  main packet processing loop in any way. We use the same single
  shot message reply port which is already available for use
  with timer.device.


CDFileSystem 48.31 (4.3.2022)

- The DupLock() code now makes sure that it's only copying
  FileLocks which belong to CDFileSystem.

- Shuffled the code around a bit to move the icky BCPL FileLock
  add/remove operations into their own dedicated functions.

- All I/O requests are now set up exactly like they are supposed
  to. No more shortcuts there...

- Just to be sure we now also check if AllocSignal(-1) worked
  out OK.


CDFileSystem 48.32 (5.3.2022)

- Finally figured out why the path table index was used inconsistently:
  because ACTION_PARENT_FH was using it incorrectly. It returned a Lock
  on the file, not on the parent of the file. Fixed.

- Making a new lock now also takes care of remembering the type of object
  it refers to. This renders checks on the lock's key (logical block
  number) moot which only answered the question whether a directory
  or file was involved.

- Took note of the directory record flags, which will become useful later.

- Tidied up "lock.c" a bit, which will also become useful later.

- Made preparations to switch over ScanPath() to use FindFile() instead
  of FindPathName(), which is necessary for the Rock Ridge file/directory
  name replacement to work. FindPathName() does not deliver a directory
  record, but FindFile() does (if it succeeds) and that record is
  needed when finding the name replacement.


CDFileSystem 48.33 (5.3.2022)

- Switched over ScanPath() to use FindFile() by default. This is needed
  for Rock Ridge file name replacement. Hence, if there is no Rock Ridge
  support provided for a CD-ROM we can just return to the previous
  approach of looking up the respective directory entry name in the
  path table index.

- The ACTION_EXAMINE handling code no longer looks up the file/directory
  name in the path index table but sticks to what directory record says
  instead.


CDFileSystem 48.34 (5.3.2022)

- Dropped in the code which, if Rock Ridge support is enabled, should
  take care of file name substitution, Amiga protection and comment
  support, etc.

  I'm surprised to see that at least the name substitution immediately
  worked. Let's hope it will do so consistently :-)


CDFileSystem 48.35 (5.3.2022)

- Replaced the test for Rock Ridge support in ScanDirBlock() so that
  it is performed only once per loop.

- Removed the lock validity check in NextFile() which I hope will not
  be needed any more. We'll probably find out...

- Added a bit of documentation to fill_in_directory_entry_data() and
  removed the individual record version checks (they all have to be
  version 1, so this can be handled with one entry check).

- Removed fill_in_directory_entry_name(), which should not be needed
  any more.


CDFileSystem 48.36 (6.3.2022)

- Added a simple validation to the ExNext() code which verifies that
  the previous call to Examine()/ExNext() may continue. This replaces
  a more elaborate test in the original CDFileSystem which checked
  the name stored in the FileInfoBlock. Name checking is much more
  costly with Rock Ridge support enabled as it requires a full scan
  of the directory records. Hence the cheaper test performed on
  FileInfoBlock->fib_DiskKey.

- Directory scanning through ExNext() now skips "Associated files",
  which are sort of aliases for the same directory, such as the
  POSIX file system "." referencing the current directory.

- Removed the print_susp_entries_for_direc() diagnostic code.

- Updated the documentation for fill_in_directory_entry_data() again.

- Added support for the "PX" System Use Entry, which provides POSIX style
  file access modes. These are converted into something more suitable
  for the Amiga unless an "AS" System Use Entry has provided them
  already.

- Continuation of Amiga file/directory comments provided through
  "AS" System Use Entries and "CE" records is supported now. So
  is continuation of alternate file/directory names provided through
  "AN" System Use Entries.


CDFileSystem 48.37 (8.3.2022)

- Added stack size measurement code which, so far, shows that no more
  than 872 bytes of stack space are required to run CDFileSystem.
  This is pretty close to the 1000 bytes of stack space which the
  default mount file for it provides.

- All locks now bear signature and version information, just like the
  volume nodes. Any locks not matching these are rejected as invalid.

- Unlocking the last remaining lock for a volume no longer removes the
  volume, too. Volume removal is reserved for ACTION_INHIBIT and
  medium removal/change.

- Locks are no longer unlocked and removed unless they belong to the
  currently active volume.

- Shuffled the code around a bit to the effect that functions which
  are used only in a single source code file can be made into static
  functions.


CDFileSystem 48.38 (12.3.2022)

- Cleanup work in preparation for coming attractions. Mostly, these
  changes are concerned with setup/cleanup code to avoid duplication
  of the cleanup code.

- The cache cleanup code now makes sure that any cache I/O requests
  in progress are aborted before the allocated memory is released.

- The Init() code now uses the dos.library WaitPkt() function, as
  it should. The special WaitPacket() function which the main dispatch
  loop uses is still in place and needed because it has to watch
  for medium change events.

- The DeMount() function now sets the local pointers to the path table
  and the associated index to NULL, because these data structures
  were migrated into the private part of the volume when it was mounted.
  Because these data structures may get picked up and perhaps even
  released by a different file system instance we can't have these
  dangling pointers stick around.

- Updated the code documentation as needed.


CDFileSystem 48.39 (12.3.2022)

- Switched over to use the operating system routines for creating
  I/O requests and message ports instead of using global data
  and initializing it as required. Why not?

- Found a few more global variables which are not really needed
  any more and removed them.

- Found that the maximum stack size usage dropped by 4 bytes ;-)


CDFileSystem 48.40 (13.3.2022)

- More code cleanup, mostly involving duplicate code removal.
  Yes, CDFileSystem actually got a little shorter.


CDFileSystem 48.41 (13.3.2022)

- The Rock Ridge support code now uses macros to piece 32 bit
  integer values together from the byte arrays provided, which
  should improve readability somewhat.

- I think I finally figured out how to make the CmpBStr()
  comparison work, by using Strnicmp() and if both string
  prefixes match, using any difference in length.


CDFileSystem 48.42 (13.3.2022)

- Lucky number 42.

- Reworked to be entirely reentrant, using the modest means of
  the 'C' compiler by pushing the same context variable holding
  all the data onto almost every function involved. This is
  still just plain 'C' code and does not use any vendor-specific
  tricks.

  May contain nuts.


CDFileSystem 48.43 (15.3.2022)

- More funny cleanup work. Amazingly, the local data structures would
  feature unused fields which are now gone...

- Shaved off a few more bytes by using utility.library/UDivMod32 instead
  of using either the global 'struct Library *UtilityBase;' variable or
  the equivalent SAS/C integer math code.


CDFileSystem 48.44 (16.3.2022)

- Small preparations for making it possible to use ISO image files instead
  of mass storage devices such as scsi.device: the file system no longer uses
  the default Process.pr_MsgPort for packet I/O handling, but a MsgPort
  of its own creation. This allows for Open(), Read(), Seek(), etc. to be
  used with impunity.

- Removed more duplicate code (how is there still some left?) and integrated
  some local function code which did not merit having a dedicated function
  for in the first place, with all the changes that have been made to the
  file system...


CDFileSystem 48.45 (19.3.2022)

- Remounting the file system after a medium change now only takes
  place if the volume has been unmounted first.

- Mount() now produces a NUL-terminated BCPL string for the
  volume name in the unlikely case of the volume descriptor
  not having a valid name.

- Mount() failing to create a volume and cleaning up after itself
  is now a simpler process with duplicated code removed.


CDFileSystem 48.46 (19.3.2022)

- If the same ISO volume is mounted all over again the mount code now
  adjusts the corresponding AmigaDOS volume creation date so that
  Workbench will be able to tell these volumes apart.

- Fixed up the stack size checking code so that it works again with
  the code changes which render the file system reentrant.

- Removed MatchBStr() which was used solely for checking if
  volume names were identical. The CmpBStr() function can do this
  just as well. Removed MatchStr(), too, which was just a wrapper
  for memcmp(), actually.

- Stack size usage increased to 904 bytes. Owie!

- Carmen Sternwood probably pulled that trigger for fun.

- Note: CDFileSystem only uses the Device, Unit, Flags, BufMemType and Buffers
        mount parameters. The Buffers parameter controls how much memory may be
        used for the file read-ahead cache and should be a good match for the
        maximum file size you expect to process as well as how long it will
        take to fill the read-ahead cache. The directory cache size is fixed
        to 8 sectors and cannot be changed through the mount parameters.


CDFileSystem 48.47 (19.3.2022)

- Medium insertion or removal handling could have gone unnoticed for a
  very long time because the code which detected it only got its chance
  to register the change if there was no file system packet pending.
  The change indication now uses a signal which is always going to be
  checked in the packet handling code regardless of whether packets
  are pending or not.


CDFileSystem 48.48 (20.3.2022)

- Added the necessary scaffolding to allow for the built-in debug output
  messages to be emitted, if necessary. This is a compile-time option
  in "clib.c" and may be used by editing the "#define D(..)" and
  "#define DD(..)" macros in the source code files which use them.

- MakeFileName() now truncates the file name to be produced, removing only
  the ";<sequence of digits>" suffix which is part of the ISO 9660 standard.
  The previous implementation just stopped processing at the first ";"
  character found.

- Just in case is makes a difference, ReMount() no longer expects the
  mass storage device driver to support the TD_CHANGESTATE command.


CDFileSystem 48.49 (20.3.2022)

- Looks like the Rock Ridge Interchange Protocol support mostly worked
  just because very few CD-ROMs make use of the Amiga-specific file
  and directory comment feature. The directory scanning code had no
  need of the comment text and passed a NULL pointer to the function
  which decoded the Rock Ridge data. But that function copied it
  anyway, trashing everything around memory location 0. This knocked
  out the interrupt vector table, with predictable results, many of
  which surely must be educational.

  Thanks go to Mikhail Malyshev for providing CD-ROM image files designed
  to trip up my somewhat naïve Rock Ridge Interchange Protocol support
  code :-)

- Added validation to the volume, directory and file name information.
  If any entries wind up being 0 characters long or contain characters
  which are unusable or likely to cause surprising side-effects, then
  these entries will be filtered out. If such characters are found in
  the volume name, then the volume name will be truncated as needed.

- Because nobody expects the Spanish Inquisition, directory entries
  which are called "*" are filtered out as well.

- Realized that the limit for what fits into FileInfoBlock.fib_Name
  in terms of string is 106 characters, because the MakeName() function
  will claim 1 character for the string length and 1 character for the
  NUL termination. Fixed.


CDFileSystem 48.50 (21.3.2022)

- Amiga file/directory comments now work as intended. It's strange that
  the comment data already contains the length of the comment string
  itself, which is redundant because the SUSP record already contains
  the length of the entire comment string (including the preceding
  length byte).

- Rock Ridge replacement names now have the VMS file version information
  stripped, for those CD-ROMs which feature these (and should not do so).

- Removed AbortCacheLessThan() and replaced it with FlushDataCache(), which
  accomplishes the same thing in context.

- The local name buffer used by name_is_invalid() was too short. Fixed.


CDFileSystem 48.51 (22.3.2022)

- File, directory and volume names are now checked for "/" and ":"
  characters which should not be there.

- Turns out that the fall-back for Rock Ridge directory entry
  name replacement did not clean up the respective name, removing
  any VMS file version information. This is why the "Art Effect 4"
  CD-ROM had consistently broken file names. Thanks go to
  Mikhail Malyshev for providing the test case.

- Cleaned up the buffer size constant names which now reflect what
  is a buffer size limit and what is the length of a string which
  must fit into such a buffer.

- The startup code now checks if the stack size available to the
  file system is at least 1000 bytes, which is the default for
  the 1994 CD0 mount file.


CDFileSystem 48.52 (24.3.2022)

- Added a ROM tag which should allow for making the file system
  resident and possibly boot with it. Your mileage may vary.

- The file system now adds itself to the FileSystem.resource
  list, if possible.


CDFileSystem 48.53 (26.3.2022)

- Added curly brackets to the DosPacket handling. This fixes the
  problems with DiskImage.device.


CDFileSystem 48.54 (20.4.2022)

- The root directory protection flags used to be set to the
  mysterious value 0x9ff7 which according to the accompanying
  comment text "/* CES 21.0 - from FFS */" were adopted from
  what the FFS implementation of either 1990 (Summer CES) or
  1991 (Winter CES) would use. While this magic number does
  render the root directory write-protected, read-protected
  and not executable, it fails to explain why the flags had
  to be 0x9ff7.

  Some research into the 1987 FastFileSystem and 1990/1992
  filesystem source code suggests that the file system treats
  the root directory block contents like any user directory
  or file block, retrieving the protection flags from where
  they would be stored for this type of block. Problem is, the
  root directory has no protection flags and the offset which
  for a file or user directory contains these flags is part of
  the table of bitmap block numbers. So what comes out as the
  protection flags is basically a "random number".

  Anyway, the root directory "protection flags" now default
  to 0, just like for all other files and directories on
  the volume.


CDFileSystem 48.55 (29.6.2023)

- Added proper support for the ACTION_CHANGE_MODE packet type,
  which completes the set of useful Kickstart 2.x file system
  packets as implemented by CDFileSystem. Arguably,
  ACTION_EXAMINE_ALL support might be a useful addition, but
  it would require adding much more code with very little
  benefit in return.


CDFileSystem 48.56 (8.4.2024)

- Replaced the comparison algorithm used by the CmpBStr()
  function in order to make it predictable rather than
  dependent on the current locale collation rules. The
  same comparison algorithm is used which the "international
  mode" of the FastFileSystem V36 and beyond made use of.

  Because CmpBStr() is only used to determine if two strings
  are identical or different, there is no need for it to
  return anything but 0 (= equal) or 1 (= different).


CDFileSystem 48.57 (19.3.2025)

- Actually, volume names cannot be longer than 30 characters
  (this is baked into the dos.library API). The name will be
  truncated, if necessary.
