New: [rhinstaller/blivet/pulls/177 master] use floor division in calculating amount to reclaim (#1245446)

AdamWill installerbot-noreply at redhat.com
Thu Jul 23 06:52:12 UTC 2015


Using true division results in a float, which eventually causes
a crash when the value is passed to sectorsToSize(), which
tries to multiply it by a Size. Multiplying a float by a Size
doesn't work. sectorsToSize() does specify that it needs an int.
This is a python2 vs. python3 thing: in py2, int/int returns
an int. See PEP 238.
This fixes #1245854 and #1245446 (tested).
-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/177


More information about the anaconda-patches mailing list