summaryrefslogtreecommitdiffstats
path: root/partedUtils.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-12-20 21:20:08 +0000
committerJeremy Katz <katzj@redhat.com>2004-12-20 21:20:08 +0000
commitdee05788b0612b12a92b434748f369f5848d1cd3 (patch)
tree13c6ded4d0f8faaaa10c17d5dec674c4c98b4a83 /partedUtils.py
parent6cdd0175be203c618c92fa43b58764f1ccb230b6 (diff)
downloadanaconda-dee05788b0612b12a92b434748f369f5848d1cd3.tar.gz
anaconda-dee05788b0612b12a92b434748f369f5848d1cd3.tar.xz
anaconda-dee05788b0612b12a92b434748f369f5848d1cd3.zip
2004-12-20 Jeremy Katz <katzj@redhat.com>
* command-stubs/mknod-stub (main): Add * partedUtils.py (get_partition_name): * iutil.py (makeDriveDeviceNodes): * fsset.py (prepbootFileSystem.getDiskPart): Promise SX8 devices are of the form /dev/sx8/dpn; support this as needed.
Diffstat (limited to 'partedUtils.py')
-rw-r--r--partedUtils.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/partedUtils.py b/partedUtils.py
index b7d3cabc4..c38d849c6 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -117,6 +117,11 @@ def get_partition_name(partition):
or partition.geom.dev.type == parted.DEVICE_CPQARRAY):
return "%sp%d" % (partition.geom.dev.path[5:],
partition.num)
+ if (parted.__dict__.has_key("DEVICE_SX8") and
+ partition.geom.dev.type == parted.DEVICE_SX8):
+ return "%sp%d" % (partition.geom.dev.path[5:],
+ partition.num)
+
return "%s%d" % (partition.geom.dev.path[5:],
partition.num)
@@ -1099,5 +1104,6 @@ max_logical_partition_count = {
"cciss/": 11,
"i2o/": 11,
"iseries/vd": 3,
- "ida/": 11
+ "ida/": 11,
+ "sx8/": 11,
}