[PATCH 2/6] Specify ntfs resize target in bytes. (#1120964)

David Lehman dlehman at redhat.com
Tue Oct 28 19:19:59 UTC 2014


This saves us the trouble of having to round in the correct direction.
---
 blivet/formats/fs.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index ad9bf98..d237b33 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1386,8 +1386,7 @@ class NTFS(FS):
     def resizeArgs(self):
         # You must supply at least two '-f' options to ntfsresize or
         # the proceed question will be presented to you.
-        # ntfsresize uses SI unit prefixes
-        argv = ["-ff", "-s", "%dM" % self.targetSize.convertTo(spec="mb"),
+        argv = ["-ff", "-s", "%d" % self.targetSize.convertTo(spec="b"),
                 self.device]
         return argv
 
-- 
1.9.3



More information about the anaconda-patches mailing list