mirror of
https://github.com/open-simh/simh.git
synced 2026-02-24 08:12:54 +00:00
Previously only the actual size of the container file was used when attaching a disk. This was correct only when the size of the container file actually aligned with the simulated disk drive. disks created with sim_disk_attach automatically write to the last sector of a simulated disk file when the disk is created. Therefore, auto sizing worked correctly for any disk created with sim_disk_attach. Disk images created with simh prior to 4.X would only write to the portions of the disk drive when the simulated system writes data. These disk images would only be properly sized if the simulated operation of the disk had actually written to the last block of the disk. Auto sizing of these disks would usually size the resulting disk incorrectly and strange behaviors might occur when using such an incorrectly auto sized disk. Fixes #357
15 KiB
15 KiB