]> git.ipfire.org Git - thirdparty/systemd.git/commit
import: always use the same buffer size 39008/head
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Aug 2025 15:04:37 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Sep 2025 13:43:13 +0000 (15:43 +0200)
commitf26a805a9faf0215929a69876493171ce73be6e0
tree92b0db4ba0eeeb2d51d6358b0f468c2674846347
parent0ba1d9f6db03429e73cb5b9a298dc173e8211754
import: always use the same buffer size

Let's synchronize the buffer sizes used when passing around the disk
images, i.e. size both our internal buffers and the pipe buffers the
same (so that we can always write()/read() everything in one gone -
except for the noise compression inserts).

Let's also increase the buffer sizes from 16K to 128K, which made a
difference for me, because it reduces the number of syscalls quite a
bit.
src/import/export-raw.c
src/import/export-tar.c
src/import/import-common.c
src/import/import-common.h
src/import/import-compress.c
src/import/import-raw.c
src/import/import-tar.c