[PATCH] ntfs _getSize needs to use Decimal (#1063077)
Brian C. Lane
bcl at redhat.com
Mon Feb 10 22:54:23 UTC 2014
---
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:
--
1.8.5.3
More information about the anaconda-patches
mailing list