[Bug 617848] wrong calculation of partition size