Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Development (http://www.linux-archive.org/archlinux-development/)
-   -   "vg" is not valide inside this if. (http://www.linux-archive.org/archlinux-development/269862-vg-not-valide-inside-if.html)

Joel Granados Moreno 03-25-2009 12:39 PM

"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

Hans de Goede 03-25-2009 12:42 PM

"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


All times are GMT. The time now is 12:40 PM.

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