[rhel6-branch] Fix dasdfmt progress bar. (#1210450)

Samantha N. Bueno sbueno+anaconda at redhat.com
Mon Nov 9 17:36:59 UTC 2015


As a means of performance improvement, dasdfmt now defaults to formatting 10
cylinders in one step instead of 01. However, this causes issues with updating
the progress bar when dasdfmt is run. So, specify the old size of 01 cylinder
formatted in each step. For more details on this dasdfmt feature, see bz1053828.

Resolves: rhbz#1210450
---
 storage/dasd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/storage/dasd.py b/storage/dasd.py
index b73badf..1a21a1e 100644
--- a/storage/dasd.py
+++ b/storage/dasd.py
@@ -52,7 +52,7 @@ class DASD:
         self._completedCylinders = 0.0
         self._maxFormatJobs = 0
         self.dasdfmt = "/sbin/dasdfmt"
-        self.commonArgv = ["-y", "-d", "cdl", "-b", "4096"]
+        self.commonArgv = ["-y", "-d", "cdl", "-b", "4096", "-r", "1"]
         self.started = False
 
     def __call__(self):
-- 
2.4.3



More information about the anaconda-patches mailing list