Skip to content

Commit 8e76eab

Browse files
yuwatabluca
authored andcommitted
repart: if partition already exists, required size may not be multiple of grain size
See partition_min_size_with_padding(). Fixes #37178. (cherry picked from commit cb109e00c45c8e92b1020e6249aac4a212e7f72d) (cherry picked from commit 4e6d6d885d320c27deb63b8a5ae5b330c00a174c) (cherry picked from commit ee9434f7022fdbb48a2f1466d9531da2a30c35cd)
1 parent 93f677f commit 8e76eab

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/partition/repart.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,6 @@ static bool context_allocate_partitions(Context *context, uint64_t *ret_largest_
836836

837837
/* How much do we need to fit? */
838838
required = partition_min_size_with_padding(context, p);
839-
assert(required % context->grain_size == 0);
840839

841840
for (size_t i = 0; i < context->n_free_areas; i++) {
842841
a = context->free_areas[i];

0 commit comments

Comments
 (0)