[hatari-devel] GEMDOS file buffer flush problem? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] GEMDOS file buffer flush problem?
- From: Douglas Little <doug694@xxxxxxxxxxxxxx>
- Date: Tue, 26 Feb 2013 11:48:09 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=5B2yFuYAjpUycusOas0lnSpqlunsBnLHkerkhbuYfig=; b=mE/QcopfB1DpW2VsiM/7Y7cn6Mc+bqxebRRhBBV+CgcsRh+ON4TfZRWzjoVPFux0yM SPyv3cxaRHGDnuLUwxES1Top5EmLCwxghcZR8phit/rgfY4PA3ikNS/ZxKfIe/rKbkuK 2yAZow2meCI/dOzADKRZfrtIXDO6KxPCFpgWza0fOhlJ8Jxe99hBasoi+rUzyjHJHXJs AjE4rXSh0OFqSQB8DIzMEe0N3bWy43ODSgN/5dPNF3FkTBUeuPh5tFRoDvbUmiYMvKDw RVfgUuc3glwOoEGgoAoujqiuErll4JNXrq1vK/ZyGLQhOQrjzmiG92eTyjJ46yu3ou93 Kbvg==
I noticed something strange happening while trying to export listing files from Devpac3 for use with the Hatari debugger & profiler.
The problem isn't with the debugger/profiler but some odd interaction between Devpac3, Hatari and the GEMDOS HD share with the host PC (in my case, WinXP).
When the listing file is large, it is not always completely written to the disk when Devpac3 has finished assembling. The file reaches a (very round-looking) size of 1536kb and is truncated. I can make a backup copy of this file, and exit Devpac3, and the file remains at the same truncated size.
When I then exit Hatari, the file commits fully to 1544k and is no longer truncated.
Apart from being quite annoying (it means I have to keep restarting Hatari each time I want to generate a symbol file) it's also a little scary - what else might not be getting fully committed to the GEMDOS share during a Hatari session?
TBH I don't know if this is a Devpac bug or a Hatari problem - but I imagine it could be a bit of both. If the file only flushes properly when Hatari exits, there must be either pending writes (Hatari) or a pending file closure (Devpac). In any case it would seem there is a difference in behaviour between Hatari and a real Falcon for this situation so it may be worth investigating.
D.