[PATCH 1/4] Remove unused code related to device probe methods.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 pyanaconda/storage/devices.py |   43 -----------------------------------------
 1 files changed, 0 insertions(+), 43 deletions(-)

diff --git a/pyanaconda/storage/devices.py b/pyanaconda/storage/devices.py
index da3e4bb..10f1f27 100644
--- a/pyanaconda/storage/devices.py
+++ b/pyanaconda/storage/devices.py
@@ -873,14 +873,6 @@ class DiskDevice(StorageDevice):
         return super(DiskDevice, self).size
     #size = property(StorageDevice._getSize)
 
-    def probe(self):
-        """ Probe for any missing information about this device.
-
-            pyparted should be able to tell us anything we want to know.
-            size, disklabel type, maybe even partition layout
-        """
-        log_method_call(self, self.name, size=self.size, partedDevice=self.partedDevice)
-
     def destroy(self):
         """ Destroy the device. """
         log_method_call(self, self.name, status=self.status)
@@ -1953,8 +1945,6 @@ class LVMVolumeGroupDevice(DMDevice):
         # They still occupy space in the VG.
         self.voriginSnapshots = {}
 
-        #self.probe()
-
     def __str__(self):
         s = DMDevice.__str__(self)
         s += ("  free = %(free)s  PE Size = %(peSize)s  PE Count = %(peCount)s\n"
@@ -2002,12 +1992,6 @@ class LVMVolumeGroupDevice(DMDevice):
         if s:
             f.write(" %s" % s)
 
-    def probe(self):
-        """ Probe for any information about this device. """
-        log_method_call(self, self.name, status=self.status)
-        if not self.exists:
-            raise DeviceError("device has not been created", self.name)
-
     @property
     def mapName(self):
         """ This device's device-mapper map name """
@@ -2858,25 +2842,6 @@ class MDRaidArrayDevice(StorageDevice):
 
     spares = property(_getSpares, _setSpares)
 
-    def probe(self):
-        """ Probe for any missing information about this device.
-
-            I'd like to avoid paying any attention to "Preferred Minor"
-            as it seems problematic.
-        """
-        log_method_call(self, self.name, status=self.status)
-        if not self.exists:
-            raise DeviceError("device has not been created", self.name)
-
-        try:
-            self.devices[0].setup()
-        except Exception:
-            return
-
-        info = mdraid.mdexamine(self.devices[0].path)
-        if self.level is None:
-            self.level = mdraid.raidLevel(info['level'])
-
     def updateSysfsPath(self):
         """ Update this device's sysfs path. """
         log_method_call(self, self.name, status=self.status)
@@ -3470,10 +3435,6 @@ class NoDevice(StorageDevice):
         """ Device node representing this device. """
         return self.name
 
-    def probe(self):
-        """ Probe for any missing information about this device. """
-        log_method_call(self, self.name, status=self.status)
-
     def setup(self, intf=None, orig=False):
         """ Open, or set up, a device. """
         log_method_call(self, self.name, orig=orig, status=self.status,
@@ -3523,10 +3484,6 @@ class FileDevice(StorageDevice):
         StorageDevice.__init__(self, path, format=format, size=size,
                                exists=exists, parents=parents)
 
-    def probe(self):
-        """ Probe for any missing information about this device. """
-        pass
-
     @property
     def fstabSpec(self):
         return self.name
-- 
1.7.3.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux