Bug#717684: Patch

Thomas Lange lange at informatik.uni-koeln.de
Mon Oct 7 19:19:40 UTC 2013


Here's the patch, that adds support for LV Path in this library.
Later I will also adjust setup-storage in FAI.



--- LVM.pm	2012-02-08 23:51:49.000000000 +0100
+++ /home/lange/LVM.pm	2013-10-07 21:15:10.935908675 +0200
@@ -288,9 +288,14 @@
             $vghash{$vgn}->{uuid} = $1; 
             next VGINF; }
 
+        # Parse the logical path name.
+        elsif( m/LV Path\s+(\S+)/ ) { 
+            $lvn = $1; 
+            $vghash{$vgn}->{lvols}->{$lvn}->{path} = $1; 
+            next VGINF; }
+
         # Parse the logical volume name.
         elsif( m/LV Name\s+(\S+)/ ) { 
-            $lvn = $1; 
             $vghash{$vgn}->{lvols}->{$lvn}->{name} = $1; 
             next VGINF; }
 


-- 
regards Thomas



More information about the pkg-perl-maintainers mailing list