summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iw/partition_gui.py2
-rw-r--r--iw/raid_dialog_gui.py2
-rw-r--r--partIntfHelpers.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index cea465db3..5ebee3a1a 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -983,7 +983,7 @@ class PartitionWindow(InstallWindow):
if not device:
return
if device.format.type == "disklabel":
- if doDeleteDependentDevices(self.intf,
+ if doClearPartitionedDevice(self.intf,
self.storage,
device):
self.refresh()
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 02a452ea9..bb457a540 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -667,7 +667,7 @@ class RaidCloneDialog:
# now try to clear the target drives
for devname in self.targetDrives:
device = self.storage.devicetree.getDeviceByName(devname)
- doDeleteDependentDevices(self.intf, self.storage,
+ doClearPartitionedDevice(self.intf, self.storage,
device, confirm=0, quiet=1)
# now clone!
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index cf136fb99..e4e4c23b2 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -143,7 +143,7 @@ def doDeleteDevice(intf, storage, device, confirm=1, quiet=0):
storage.destroyDevice(device)
return True
-def doDeleteDependentDevices(intf, storage, device, confirm=1, quiet=0):
+def doClearPartitionedDevice(intf, storage, device, confirm=1, quiet=0):
""" Remove all devices/partitions currently on device.
device -- a partitioned device such as a disk