From 3d67b5a0842ba834835ee219f63de8ffe0965f5c Mon Sep 17 00:00:00 2001 From: Jonas Rebmann Date: Tue, 7 Apr 2026 11:03:48 +0200 Subject: [PATCH 1/2] test-specifier: update comment to moved file src/partition/repart.c was renamed to src/repart/repart.c in commit 211d2f972dd1 ("Rename src/partition to src/repart"), update the comment accordingly. Signed-off-by: Jonas Rebmann --- src/test/test-specifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-specifier.c b/src/test/test-specifier.c index 850f961bfe..6c6c00f53f 100644 --- a/src/test/test-specifier.c +++ b/src/test/test-specifier.c @@ -156,7 +156,7 @@ TEST(specifiers_assorted) { const sd_id128_t id = SD_ID128_ALLF; const uint64_t llu = UINT64_MAX; const Specifier table[] = { - /* Used in src/partition/repart.c */ + /* Used in src/repart/repart.c */ { 'a', specifier_uuid, &id }, { 'b', specifier_uint64, &llu }, {} From 07745c222c8a323c4c9c09407bab70aa2a3ec2f8 Mon Sep 17 00:00:00 2001 From: Jonas Rebmann Date: Tue, 7 Apr 2026 11:06:25 +0200 Subject: [PATCH 2/2] repart: Do not refer to SizeMinBytes= as SizeMin= No SizeMin= option exists for repart.d; it seems that SizeMinBytes= was intended. Update all references accordingly. Signed-off-by: Jonas Rebmann --- man/repart.d.xml | 2 +- src/repart/repart.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/man/repart.d.xml b/man/repart.d.xml index f3ed246b6e..217692d813 100644 --- a/man/repart.d.xml +++ b/man/repart.d.xml @@ -402,7 +402,7 @@ be empty. If this option is used, the size allocation algorithm is slightly altered: the partition is created at least as big as required to fit the data in, i.e. the data size is an additional minimum size value taken into consideration for the allocation algorithm, similar to and in addition to the - SizeMin= value configured above. + SizeMinBytes= value configured above. This option has no effect if the partition it is declared for already exists, i.e. existing data is never overwritten. Note that the data is copied in before the partition table is updated, diff --git a/src/repart/repart.c b/src/repart/repart.c index 0417d4133a..e9cd0d8569 100644 --- a/src/repart/repart.c +++ b/src/repart/repart.c @@ -1116,7 +1116,7 @@ static uint64_t partition_min_size(const Context *context, const Partition *p) { * exists the current size is what we really need. If it doesn't exist yet refuse to allocate less * than 4K. * - * DEFAULT_MIN_SIZE is the default SizeMin= we configure if nothing else is specified. */ + * DEFAULT_MIN_SIZE is the default SizeMinBytes= we configure if nothing else is specified. */ if (PARTITION_IS_FOREIGN(p)) { /* Don't allow changing size of partitions not managed by us */