]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/partition/repart.c
repart: Fix size round up/round down 29954/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 Nov 2023 11:10:53 +0000 (12:10 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 9 Nov 2023 11:10:53 +0000 (12:10 +0100)
commit6563aede889b78279242dcad45a0b9d82b27b617
treecde136cfa3d7c5c08727b105bbd03fb373bf3197
parent74b45fe43fad02973470fd85de99243d7749ffdb
repart: Fix size round up/round down

Currently, we round minimum sizes up and maximum size down, whereas
it should be the opposite as the current approach means that if the
same size is used for min and max, the min size will end up bigger
than the max size after rounding.
src/partition/repart.c