Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Development (http://www.linux-archive.org/debian-development/)
-   -   Do all dm handling inside addUdevDMDevice. (#672030) (http://www.linux-archive.org/debian-development/492122-do-all-dm-handling-inside-addudevdmdevice-672030-a.html)

Ales Kozumplik 02-21-2011 06:55 AM

Do all dm handling inside addUdevDMDevice. (#672030)
 
On 02/19/2011 06:04 PM, David Lehman wrote:

---
pyanaconda/storage/devicetree.py | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index c74a23c..a57e5e1 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -954,13 +954,7 @@ class DeviceTree(object):
device = self.addUdevLVDevice(info)
elif udev_device_is_dm(info):
log.debug("%s is a device-mapper device" % name)
- # try to look up the device
- if uuid:
- # try to find the device by uuid
- device = self.getDeviceByUuid(uuid)
-
- if device is None:
- device = self.addUdevDMDevice(info)
+ device = self.addUdevDMDevice(info)
elif udev_device_is_md(info):
log.debug("%s is an md device" % name)
if uuid:


Ack.

Al_

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


All times are GMT. The time now is 11:23 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.