FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

LinkBack Thread Tools
Old 07-14-2011, 05:59 PM
David Lehman
Default Don't associate LVs' formats with their parent VG.

When udev tells us it found an LV the most we can hope for is to
find the VG since we delay processing of the LVs until after we
know for sure which VGs are complete and consistent. Returning
the VG tricks the caller into thinking we've returned the LV.
pyanaconda/storage/devicetree.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index 3807994..646f30b 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -609,7 +609,9 @@ class DeviceTree(object):
device = self.getDeviceByName(vg_name)
if not device:
log.error("failed to find vg '%s' after scanning pvs" % vg_name)
- return device
+ # Don't return the device like we do in the other addUdevFooDevice
+ # methods. The device we have here is a vg, not an lv.

def addUdevDMDevice(self, info):
name = udev_device_get_name(info)

Anaconda-devel-list mailing list

Thread Tools

All times are GMT. The time now is 04:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org