Re: [hatari-devel] Floppy images cached? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx, Thorsten Otto <admin@xxxxxxxxxxx>
- Subject: Re: [hatari-devel] Floppy images cached?
- From: Nicolas Pomarède <npomarede@xxxxxxxxxxxx>
- Date: Mon, 30 Jun 2025 23:09:23 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs; t=1751317764; bh=v3eb/YDuPeyHTqYpjE1V0B6c0IAABG7eEmJvbdNuOcs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=fn4x6nPklg6fMQXGCY67mlB13VfO2Q4tMucBVgY8zmqRs2xu2KSXq7VlGm876yVhJ f8gdPhj7iGMyKkdpr5ppErO0fYd7ajXMwiFEd6xcSaIG7g1PpDdDgT18+9en9DTlJy ykmDPqImMqurpkl6hnfQAwJ0OKUqBMXYNsgxkcGrOpgwT/d+kekBBR+xGR6fLsXMoA IK6/No2jSrv51Wi24YGAdAilCuvsilfp3cqxIHTrMeZd+hAGyY7eYDgp2sDR/v4qCz LkmIxOvgqQaw9HJHx0VBB8xtuH/gaNUQFf1gyCtgLoKNx57zXYlUdUX9V7ffdFEn26 EnMLLOp0KCmkA==
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)