[Bug 1661298] Re: parted.sizeToSectors() rounds sizes down

Łukasz Zemczak 1661298 at bugs.launchpad.net
Mon Jul 17 11:29:28 UTC 2017


This has been fixed as part of 3.11.0.

** Changed in: pyparted (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pyparted in Ubuntu.
https://bugs.launchpad.net/bugs/1661298

Title:
  parted.sizeToSectors() rounds sizes down

Status in pyparted package in Ubuntu:
  Fix Released

Bug description:
  The code for sizeToSectors() in pyparted is:

  bytes_ * __exponents[unit] // sector_size

  This means that the sizes are rounded down whenever the size is not a
  multiply of the sector size. This sounds like a really bad idea as it
  can mean that the partition we end up creating can be smaller than the
  contents we want to fit. The default should be to round the size up.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pyparted/+bug/1661298/+subscriptions



More information about the foundations-bugs mailing list