Re: [hatari-devel] Floppy images cached? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Floppy images cached?
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Tue, 1 Jul 2025 00:08:55 +0300
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.dnamail.fi 60FA24098E80
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helsinkinet.fi; s=2025-03; t=1751317736; bh=3o227hLD7l8W4MUtkSzZBNb13P3ohKfbz6DWBO/08Zs=; h=Date:Subject:To:References:From:In-Reply-To:From; b=UX0Rubata1YvmZCGUIp7NQ2g1qjMhgURVvtqdKTtA/RNwcYI0MQnuO8yrSb8VWgGi /1unLBKWkb/lzbLehjmy/8f4MrpPLyIlt8icRYd8V4tP3DT9laXjFg5ZHDt+AD9A41 Ki/9zIm/Y77WvI7UYXv17LJ+vxnn8DPwz0Msp+kCKZU7uYV6jvFH39+Vf/V5Nj3dl0 CHMw8fkNuVs9upGLZ0Ykdm9N+1jg1+cKKNiIb7K1ZF77V0qiNeLKnwuwKIstWgdARf N4x2w43iEMNewfzs/qdBg/L1MMorwgihnq4458EXFtrv3qX/nVuvD3jgeCt492YtP+ 0NUJiXfLCnpxw==
Hi,
On 30.6.2025 19.14, Thorsten Otto wrote:
I haven't looked at the code yet, but does Hatari cache the image of floppy
until i eject them again?
Yes. If disk contents have been changed when it's ejected (or Hatari
exits), Hatari overwrites disk image with the in-memory version.
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.
There are multiple disk formats, and they can be compressed. The one
which subset is supported by mtools, is not handled any differently.
That is a bit annoying, for every change to the floppy image, it has to be
ejected/reinserted.
I think reason for that should be fairly obvious.
There's no locking between TOS (or some Atari floppy manipulation
program) running inside Hatari, and some external program user may run
outside Hatari to also modify the floppy image FS content directly, or
any co-operation in how they cache the FS contents. And I do not see
how there could...
So mixing of those accesses would be a recipe for disaster (FS corruption).
- Eero