]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Sum partitions size to get current disk size instead of using total size
authorJulian Sparber <julian@sparber.net>
Wed, 19 Nov 2025 17:30:04 +0000 (18:30 +0100)
committerJulian Sparber <julian@sparber.net>
Fri, 20 Feb 2026 10:19:10 +0000 (11:19 +0100)
commit5036c9f59634326039f06f70e0b0c89890943884
treed4a03f7bd53a335f0f23886a862ed26929d3a4e4
parentc3d432a3d2a3ce41fe125dd9503d5150549a287c
repart: Sum partitions size to get current disk size instead of using total size

When working on disks the disk may have a total size bigger then the
actual allocated size, therefore sum up the current partitions to
calculate the current disk size instead of asuming that the entire disk
is currently allocated.
src/repart/repart.c