Re: [hatari-devel] Floppy images cached?

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Le 30/06/2025 à 18:14, Thorsten Otto a écrit :
I haven't looked at the code yet, but does Hatari cache the image of floppy until i eject them again?


I just noticed, that when i insert a floppy in Hatari, and at the same time try to modify the image from linux using mtools, changes are not reflected in Hatari, even when i press "ESC" in the desktop. Same thing the other way around: when i delete files from the floppy in the desktop, using mdir they are still listed in the image.


That is a bit annoying, for every change to the floppy image, it has to be ejected/reinserted.



Hi

yes, the current behaviour is to load the whole disk image (~720-880 KB) and keep it in ram. And when disk is ejected, possible changes are flushed to the disk image.

So, using a concurrent program at the same time will certainly not do what you expected.

Maybe it could be flushed after every write, or after 1 second of non disk activity, to get sthg closer to a real floppy (ie changes are visible just after being written)



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/