• Guillem Jover's avatar
    dpkg: Try to preallocate the disk size for extracted files · 87b0b20b
    Guillem Jover authored
    This might help in avoiding filesystem fragmentation, and possibly
    improve performance on some filesystems.
    We use the system specific methods if available, and only use
    posix_fallocate() if nothing else is available, because on some systems
    its semantics are counter to what we want to obtain here, as the libc
    library will fallback to manually writing '\0' to each block to force
    the preallocation, instead of just failing and leaving the application
    to do so if desired.
configure.ac 4.13 KB