The `p_fallocate` platform is currently in use in our tests, only, but it proved to be quite burdensome to get it implemented in a cross-platform way. The only "real" user is the test object::tree::read::largefile, where it's used to allocate a large file in the filesystem only to commit it to the repo and read its object back again. We can simplify this quite a bit by just using an in-memory buffer of 4GB. Sure, this cannot be used on platforms with low resources. But creating 4GB files is not any better, and we already skip the test if the environment variable "GITTEST_INVASIVE_FS_SIZE" is not set. So we're arguably not worse off than before.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
blob | Loading commit data... | |
commit | Loading commit data... | |
raw | Loading commit data... | |
tag | Loading commit data... | |
tree | Loading commit data... | |
cache.c | Loading commit data... | |
lookup.c | Loading commit data... | |
lookupbypath.c | Loading commit data... | |
message.c | Loading commit data... | |
peel.c | Loading commit data... | |
shortid.c | Loading commit data... |