Thanks, Thomas!

Brian E Finley
469.667.2110

-----Original Message-----
From: Thomas Zeiser <[email protected]>
Date: Sat, 2 Jul 2011 00:29:21 
To: <[email protected]>
Reply-To: [email protected]
Subject: [sisuite-users] fix for cciss/cXdYpZ detection in Server.pm

Hi,

here is a small bug fix to get HP's cciss/cXdYpZ correctly detected in
Server.pm (relativ to 4.1.99.svn4556_bli-1):

--- /usr/lib/systemimager/perl/SystemImager/Server.pm.orig      2011-07-02 
00:23:23.000000000 +0200
+++ /usr/lib/systemimager/perl/SystemImager/Server.pm   2011-07-02 
00:22:37.000000000 +0200
@@ -818,7 +818,7 @@

         # Translate partitions in disk variables (disk autodetection 
compliant).
         foreach (@md_devices) {
-            m/^(.*)(p?\d+)$/;
+            m/^(.*[^p])(p?\d+)$/;
             my $disk = $1;
             my $part_no = $2;
             $devices .= '${' . $DISK_by_disk{$disk} . '}' . $part_no . ' ';



Perl tries ot match as much as possible; thus, the "p" would always be in the
disk and never in the part_no ... which is bad as $DISK_by_disk{$disk} won't
find anything. Thus, just do not allow the disk to end in "p".

Best,

thomas

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
sisuite-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sisuite-users

Reply via email to