summaryrefslogtreecommitdiffstats
path: root/raid.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-02-06 21:49:11 +0000
committerJeremy Katz <katzj@redhat.com>2002-02-06 21:49:11 +0000
commitb79bbf852add9ff1ff09138ea35488b26cc7bdb7 (patch)
tree25849821c71d0a5b9bd5f6f1f0ae517d9d8b450e /raid.py
parent2d28d0e04d2e943aa21c745b5eb9c54b986e46f9 (diff)
downloadanaconda-b79bbf852add9ff1ff09138ea35488b26cc7bdb7.tar.gz
anaconda-b79bbf852add9ff1ff09138ea35488b26cc7bdb7.tar.xz
anaconda-b79bbf852add9ff1ff09138ea35488b26cc7bdb7.zip
stage 1 of the partitioning.py cleanup effort --
1) move the following functions from partitioning.py -> partedUtils.py get_flags, start_sector_to_cyl, end_sector_to_cyl, start_cyl_to_sector, end_cyl_to_sector, getPartSize, getPartSizeMB, getDeviceSizeMB, get_partition_by_name, get_partition_name, get_partition_file_system_type, set_partition_file_system_type, get_partition_drive, map_foreign_to_fsname, filter_partitions, get_logical_partitions, get_primary_partitions, get_raid_partitions, get_lvm_partitions, 2) move PartitioningError and PartitioningWarning classes from partitioning.py -> partErrors.py Change everything that depends on these functions to use the new location
Diffstat (limited to 'raid.py')
-rw-r--r--raid.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/raid.py b/raid.py
index 061209d44..949cff3cc 100644
--- a/raid.py
+++ b/raid.py
@@ -18,6 +18,7 @@ import parted
import isys
import os
import partitioning
+import partedUtils
from log import log
def scanForRaid(drives):
@@ -31,9 +32,9 @@ def scanForRaid(drives):
dev = parted.PedDevice.get("/tmp/" + d)
disk = parted.PedDisk.open(dev)
- raidParts = partitioning.get_raid_partitions(disk)
+ raidParts = partedUtils.get_raid_partitions(disk)
for part in raidParts:
- parts.append(partitioning.get_partition_name(part))
+ parts.append(partedUtils.get_partition_name(part))
except:
pass