Skip to content

Commit 42de761

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 cb109e0) (cherry picked from commit 4e6d6d885d320c27deb63b8a5ae5b330c00a174c) (cherry picked from commit ee9434f7022fdbb48a2f1466d9531da2a30c35cd) (cherry picked from commit 8e76eab) (cherry picked from commit 4c3fecc)
1 parent 6da6722 commit 42de761

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
@@ -789,7 +789,6 @@ static bool context_allocate_partitions(Context *context, uint64_t *ret_largest_
789789

790790
/* How much do we need to fit? */
791791
required = partition_min_size_with_padding(context, p);
792-
assert(required % context->grain_size == 0);
793792

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

0 commit comments

Comments
 (0)