Skip to content

Conversation

@eynhaender
Copy link
Contributor

Replace ftruncate with fallocate in map::resize_ to preallocate disk blocks, fix sparse file handling and ensure proper ENOSPC handling

Replace ftruncate with fallocate in map::resize_ to preallocate disk blocks, fix sparse file handling and ensure proper ENOSPC handling
@coveralls
Copy link

Coverage Status

coverage: 91.75%. remained the same
when pulling 2f60cca on eynhaender:master
into 0a23784 on libbitcoin:master.

Replace ::fallocate(opened_, 0, 0, size) with ::fallocate(opened_, 0, capacity_, size - capacity_) for efficiency
@eynhaender eynhaender closed this Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants