Skip to content

Fix O_LARGEFILE support on 32bit builds - #438

Closed
jrmithdobbs wants to merge 1 commit into
bitcoin:masterfrom
jrmithdobbs:fix-largefile-support-on-32bit-builds
Closed

jrmithdobbs wants to merge 1 commit into
bitcoin:masterfrom
jrmithdobbs:fix-largefile-support-on-32bit-builds

Conversation

@jrmithdobbs

Copy link
Copy Markdown
Contributor

Add makefile.unix definitions (tested on glibc, not sure if *bsd libc support these options) to allow debug.log to grow past 2GB on 32bit builds.

I ran into this problem when I noticed that debug.log stops updating at 2GB on my 32bit host.

This will also make it so that the block chain can grow past 2GB on 32bit builds.

We may need some further options for *bsd's libc but I don't have available test installs at the moment.

… support these options) to allow debug.log to grow past 2GB on 32bit builds.
@jrmithdobbs

Copy link
Copy Markdown
Contributor Author

The win32 and osx makefiles probably need similar changes before the block chain gets that big.

@jrmithdobbs

Copy link
Copy Markdown
Contributor Author

sipa informed me that block chain is split into 1GB files so not as big a deal there. This mostly just affects debug.log on long-running bitcoind instances.

@jrmithdobbs jrmithdobbs reopened this Jul 30, 2011
@jrmithdobbs

Copy link
Copy Markdown
Contributor Author

This breaks GetFilesize which breaks ShrinkDebugFile. Closing until I can get that sorted out.

rajarshimaitra pushed a commit to rajarshimaitra/bitcoin that referenced this pull request Aug 5, 2021
Introduction - Block Size Paragraph
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant