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.
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.