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 > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 03-25-2009, 12:39 PM
Joel Granados Moreno
 
Default "vg" is not valide inside this if.

Inside this if, "device" is the vg device that we need.
---
storage/devicetree.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 458e5a8..b9552bd 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1410,10 +1410,10 @@ class DeviceTree(object):
elif not device.complete:
# The user chose not to reinitialize.
# hopefully this will ignore the vg components too.
- self._removeDevice(vg)
- lvm.lvm_cc_addFilterRejectRegexp(vg.name)
- lvm.blacklistVG(vg.name)
- for parent in vg.parents:
+ self._removeDevice(device)
+ lvm.lvm_cc_addFilterRejectRegexp(device.name)
+ lvm.blacklistVG(device.name)
+ for parent in device.parents:
self._removeDevice(parent, moddisk=False)
lvm.lvm_cc_addFilterRejectRegexp(parent.name)

--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-25-2009, 12:42 PM
Hans de Goede
 
Default "vg" is not valide inside this if.

Looks good,

Regards,

Hans


On 03/25/2009 02:39 PM, Joel Granados Moreno wrote:

Inside this if, "device" is the vg device that we need.
---
storage/devicetree.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 458e5a8..b9552bd 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1410,10 +1410,10 @@ class DeviceTree(object):
elif not device.complete:
# The user chose not to reinitialize.
# hopefully this will ignore the vg components too.
- self._removeDevice(vg)
- lvm.lvm_cc_addFilterRejectRegexp(vg.name)
- lvm.blacklistVG(vg.name)
- for parent in vg.parents:
+ self._removeDevice(device)
+ lvm.lvm_cc_addFilterRejectRegexp(device.name)
+ lvm.blacklistVG(device.name)
+ for parent in device.parents:
self._removeDevice(parent, moddisk=False)
lvm.lvm_cc_addFilterRejectRegexp(parent.name)



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

Thread Tools




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

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