repart: when we can't fit the partitions in, report needed disk size current disk...
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Jul 2021 13:33:35 +0000 (15:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Jul 2021 09:46:35 +0000 (11:46 +0200)
commit14a4c4edc7306f7cbf04c389f6402414bc86acf0
tree3cfa4b573e9732c73e630d35edade74b14d8b01b
parent8859b8f77a734af6a3b5deb8f042ba3d394c512b
repart: when we can't fit the partitions in, report needed disk size current disk size

This improves error output in repart if we can't fit the defined
partitions into the disk image. With this change we'll now show not only
the disk size we need (as before), but also the current one, as well as
the largest free area on disk.

This should make it a bit easier to debug disk space issues that repart
runs into.
src/partition/repart.c