[PATCH] ntfs _getSize needs to use Decimal (#1063077)
Vratislav Podzimek
vpodzime at redhat.com
Tue Feb 11 10:22:48 UTC 2014
On Mon, 2014-02-10 at 14:54 -0800, Brian C. Lane wrote:
> ---
> blivet/formats/fs.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
> index 4072870..2e2faeb 100644
> --- a/blivet/formats/fs.py
> +++ b/blivet/formats/fs.py
> @@ -1393,7 +1393,7 @@ class NTFS(FS):
> log.warning("Unable to discover minimum size of filesystem "
> "on %s" %(self.device,))
> else:
> - size = min(minSize * 1.1, minSize + 500, self.currentSize)
> + size = min(minSize * Decimal('1.1'), minSize + 500, self.currentSize)
> if minSize < size:
> log.debug("padding min size from %d up to %d" % (minSize, size))
> else:
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list