Re: [PATCH] Don't try to get dm node or update sysfs path for lvm vgs.

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

 



Looks good.

On 11/25/2009 11:55 PM, David Lehman wrote:
---
  storage/devices.py |    7 +++----
  1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/storage/devices.py b/storage/devices.py
index 63d1cac..ff7698f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1634,13 +1634,13 @@ class LVMVolumeGroupDevice(DMDevice):
          """ Device node representing this device. """
          return "%s/%s" % (self._devDir, self.mapName)

-    def getDMNode(self):
-        """ Return the dm-X (eg: dm-0) device node for this device. """
+    def updateSysfsPath(self):
+        """ Update this device's sysfs path. """
          log_method_call(self, self.name, status=self.status)
          if not self.exists:
              raise DeviceError("device has not been created", self.name)

-        return dm.dm_node_from_name(self.mapName)
+        self.sysfsPath = ''

      @property
      def status(self):
@@ -1777,7 +1777,6 @@ class LVMVolumeGroupDevice(DMDevice):
          except lvm.LVMError:
              raise DeviceError("Could not completely remove VG", self.name)
          finally:
-            self.notifyKernel()
              self.exists = False

      def reduce(self, pv_list):

_______________________________________________
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