uweseimet / scsi2pi

Advanced performant SCSI/SASI emulation and tools for the PiSCSI/RaSCSI board
https://www.scsi2pi.net
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

s2p: Implement a simple LOAD behavior for the START UNIT command #4

Closed uweseimet closed 7 months ago

uweseimet commented 10 months ago

Currently removable media devices support ejecting the current medium, but they cannot load a medium. In order to work similarly to real devices with removal media support, when loading a medium s2p shall insert the last medium (image file) that was ejected. In order to do that, when ejecting a medium s2p has to rember the name of the respective image file. Load would effectively be the undo operation of eject. This behavior would be similar to what happens when you eject a CD-ROM programmatically and then you load it again: If there is no human who has changed the CD, you will just work with the same CD as before.