Re: [hatari-devel] Problems with files greater 2 GiB |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Problems with files greater 2 GiB
- From: Andreas Grabher <andreas_g86@xxxxxxxxxx>
- Date: Sat, 28 Jun 2025 20:37:18 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; bh=PAwPTY1pJ+9kEP2D9oDM4IRBsYKpnl6ylqps32apDSE=; h=Content-Type:From:Mime-Version:Subject:Date:Message-Id:To:x-icloud-hme; b=SZUPpJwI/Q35Y09j9PyWQv8LXUEtI317M6xjp349OUP9x3VPq4DatG7gUvBA9NQly 38urN9Zi/qP8LlnhezKlDloyXISkdc6luK//S+lHTt5o2TviQ6VDUwdxO7uf7Hx87A 6OF1vvp0AzdvDuLBjRUmR1jRDvn3dcDgrm1ywRvMLLl3JF0OonUq2kJZqWPFgYSKDC p+1NEDJbEAG4r/XStMorAPuYmhtvKo7y7ZyZcWcIlbBzRjaXOb5xlWad091/CWH/M4 oSs9Cj3Xaa9f+iH9e7IpGaRwnW1MNtyUKksWwbSd7YVcpzS8eqbsOUmZZp4NHSuPYv fRvnxIMjYND9A==
Christian and Otto, thank you very much for the help!
I was misreading the CMake code thinking that check_large_file is executed in place. The Hatari method looks good. I can‘t test myself but I am confident that using this in Previous will fix the issue for Windows users.
> Am 28.06.2025 um 11:37 schrieb Christian Zietz <czietz@xxxxxxx>:
>
> Andreas Grabher schrieb:
>
>> I have a problem handling files greater than 2 GiB in Previous on some platforms. For example in Windows it seems that off_t is a signed 32-bit integer. This means that many functions in file.c will fail with large files.
>> I think this can be fixed by adding -D_FILE_OFFSET_BITS=64 somewhere, probably right before the check for large file support in Hatari?
>
> You mean like it is done here?
> https://github.com/hatari/hatari/blob/36d3b3ca3635a6573859d5a1ec4d7421420b435c/CMakeLists.txt#L169
>
> I have used hard disk images larger than 2 GiB with Hatari on Windows.
>
> Regards
> Christian
> --
> Christian Zietz - CHZ-Soft - czietz@xxxxxxx
> WWW: https://www.chzsoft.de/
> New GnuPG-Key-ID: 0x8708B34C827B159E
>
>