]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Consider existing partitions when placing
authorAdrian Vovk <adrianvovk@gmail.com>
Thu, 5 Sep 2024 00:19:27 +0000 (20:19 -0400)
committerAdrian Vovk <adrianvovk@gmail.com>
Tue, 17 Sep 2024 18:06:49 +0000 (14:06 -0400)
commit78e9059208c0a161ee6dc95c122ca7810b49a033
treeafa40c34913220eade866c65adbfb7444fb3f291
parente671bdc5c34a0d522edb40b3c35a7904bcdea26e
repart: Consider existing partitions when placing

Fixes an oversight in `context_allocate_partitions` that makes it
succeed in cases where it should fail. Essentially, there was nothing
actually enforcing SizeMinBytes= and PaddingMinBytes= for partitions
that exist, only for new partitions. This behavior is inconsistent with
the docs, which state that existing partitions will be grown to at least
the specified minimum size, and that "If the backing device does not
provide enough space to fulfill the constraints placing the partition
will fail".
src/partition/repart.c