summaryrefslogtreecommitdiffstats
path: root/fsset.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 /fsset.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 'fsset.py')
-rw-r--r--fsset.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/fsset.py b/fsset.py
index c264328a0..d9aa86ef9 100644
--- a/fsset.py
+++ b/fsset.py
@@ -22,6 +22,7 @@ import parted
import sys
import struct
import partitioning
+import partedUtils
import types
from log import log
from translate import _, N_
@@ -828,7 +829,7 @@ class FileSystemSet:
# stupid itanium
if iutil.getArch() == "ia64":
- part = partitioning.get_partition_by_name(diskset.disks, bootDev)
+ part = partedUtils.get_partition_by_name(diskset.disks, bootDev)
if part and part.is_flag_available(parted.PARTITION_BOOT):
part.set_flag(parted.PARTITION_BOOT, 1)
return
@@ -856,7 +857,7 @@ class FileSystemSet:
if not bootPart:
bootPart = part
- if partitioning.get_partition_name(part) == bootDev:
+ if partedUtils.get_partition_name(part) == bootDev:
bootPart = part
part = disk.next_partition(part)
@@ -1497,7 +1498,7 @@ class PartedPartitionDevice(PartitionDevice):
if not self.partition:
return self.device
- return partitioning.get_partition_name(self.partition)
+ return partedUtils.get_partition_name(self.partition)
def solidify(self):
# drop reference on the parted partition object and note
@@ -1598,7 +1599,7 @@ def readFstab (path):
f = open (path, "r")
lines = f.readlines ()
- f.close
+ f.close()
for line in lines:
fields = string.split (line)