git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Commiting files larger than 4 GB on Windows

From
Torsten Bögershausen <tboegi@web.de>
Date
Mar 17, 2017, 05:29 UTC
Message-ID
<2ebd249b-39a4-23c2-13e3-23c91a938313@web.de>
In-Reply-To
<xmqq4lyudyaq.fsf@gitster.mtv.corp.google.com>
On 15/03/17 22:29, Junio C Hamano wrote:
Show 20 quoted lines
> Torsten Bögershausen <tboegi@web.de> writes:
>
>> The real "show stopper" is at the end.
>> ...
>>
>> ==========================
>> And it seams as if zlib is the limitation here.
>> Unless we include the zlib source code into Git and redefine uLong,
>> is there a nice way around this:
>> ===========================
>>
>>
>> /usr/include/zconf.h:#  define uLong                 z_uLong
>> /usr/include/zconf.h:#  define uLongf                z_uLongf
>> /usr/include/zconf.h:typedef unsigned long  uLong; /* 32 bits or more */
>> /usr/include/zconf.h:typedef uLong FAR uLongf;
> Hmph.  Would ef49a7a0 ("zlib: zlib can only process 4GB at a time",
> 2011-06-10) and e01503b5 ("zlib: allow feeding more than 4GB in one
> go", 2011-06-10) help us here, though?
>

That is good news. I tried to replace all "unsigned long" with size_t and got that compiling without warnings under Windows 64 bit.

Compiling this on a 32 bit Linux gave lots of warnings..

Converting all unsigned long into is probably an overkill. Some may stay, some may be converted into off_t, and some size_t.

Does anybody wants to pick this up?
Previous: Junio C HamanoNext: Thomas Braun
Message 8 of 9 in “Commiting files larger than 4 GB on Windows”
  1. Florian AdamusMar 15, 2017
  2. Thomas BraunMar 15, 2017
  3. Jeff KingMar 15, 2017
  4. Jeff KingMar 15, 2017
  5. Thomas BraunMar 15, 2017
  6. Torsten BögershausenMar 15, 2017
  7. Junio C HamanoMar 15, 2017
  8. Torsten BögershausenMar 17, 2017
  9. Thomas BraunMar 18, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.