summaryrefslogtreecommitdiffstats
path: root/partitioning.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-11 01:59:24 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-11 01:59:24 +0000
commita7bab3f6865cc2ffcfe36c855145976bbbb6200a (patch)
tree90011d9fb12a5306faadcb6d834d1e4393f3abb1 /partitioning.py
parent3f3a0483d9a72a5a1111fd3bf6b1ec318aaf0201 (diff)
downloadanaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.tar.gz
anaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.tar.xz
anaconda-a7bab3f6865cc2ffcfe36c855145976bbbb6200a.zip
badblocks support -- have to do this before even formatting swap as they
might want to check their swap for badblocks. also, still needs to parse the output and have a progress bar post-beta 2
Diffstat (limited to 'partitioning.py')
-rw-r--r--partitioning.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/partitioning.py b/partitioning.py
index 24aa96b97..49b1bc50c 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -503,7 +503,7 @@ class PartitionSpec:
format = None, options = None,
constraint = None, migrate = None,
raidmembers = None, raidlevel = None,
- raidspares = None):
+ raidspares = None, badblocks = None):
#
# requesttype: REQUEST_PREEXIST or REQUEST_NEW or REQUEST_RAID
#
@@ -529,6 +529,7 @@ class PartitionSpec:
self.drive = drive
self.primary = primary
self.format = format
+ self.badblocks = badblocks
self.migrate = migrate
self.options = options
self.constraint = constraint
@@ -600,6 +601,10 @@ class PartitionSpec:
if self.migrate:
entry.setMigrate(self.migrate)
+
+ if self.badblocks:
+ entry.setBadblocks(self.badblocks)
+
return entry
class Partitions: