Re: [hatari-devel] GEMDOS HD's drives do not show ".." in Teradesk |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: Hatari Development <hatari-devel@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: [hatari-devel] GEMDOS HD's drives do not show ".." in Teradesk
- From: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Date: Tue, 9 Sep 2025 01:53:37 +0300
- Dkim-filter: OpenDKIM Filter v2.11.0 smtp.dnamail.fi 80941211F70A
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helsinkinet.fi; s=2025-03; t=1757372017; bh=MC/bbbCVH5cTiVYk1awXLX1HA0P88eYJ4/IvjhTevMU=; h=Date:To:From:Subject:From; b=XF2ZAS9ECAjbmOKPaqu9U0d7WJnS3aYCe35Vcfq9wo1/i4WOog+9WIVdyG4PHn5f3 fh25s68UJDOTO0SnQl6yJsZFS6nIvVyiZ14I5Nz6goVAj+2s70QH0pg7wes3tcRKC8 HGMj1f7hjeTPwzqgjaGhpTWBStnr5jYFVmEC1DZIx5i+gBWNpcC+ZijbuwrbxPkfW4 Xueu4NZn71a+HDeqqemKWQLrxE/B+p37HEfquM18S3LzO9XqwK0jHByS8+LuIMqogW vYZ06DNpbs4fiU2Ht1gyqI6eqpkK/Zh1ayHeylXOs2K5xyiNHUDZrJemWwQtuR1AV2 aECr9fGFjXjlA==
Hi,
Ok, I can reproduce the behavior.
When doing GEMDOS trace, for a directory containing 4 items, Emu/TOS
does 4x Fsnext() calls, for IDE disk it does 5x Fsnext() calls, and for
a floppy disk it does 6x Fsnext() calls.
If TOS returns ".." as an additional (first?) file system entry, and
Teradesk relies on that, it could explain why ".." entry is missing with
GEMDOS HD.
On quick look I did not notice EmuTOS code for Fsfirst() + Fsnext()
returning anything like that though:
https://github.com/emutos/emutos/blob/master/bdos/fsdir.c#L440
And why there's one additional entry compared to that on floppies, is it
"." entry then?
- Eero
PS. Please CC replies to me as I'm not receiving list mails.