[Fai-commit] r4928 - people/michael/features/setup_harddisks_2/implementation/lib

mt at alioth.debian.org mt at alioth.debian.org
Mon Jun 2 22:32:07 UTC 2008


Author: mt
Date: 2008-06-02 22:32:06 +0000 (Mon, 02 Jun 2008)
New Revision: 4928

Modified:
   people/michael/features/setup_harddisks_2/implementation/lib/init.pm
Log:
support large sets of SCSI disks, just like disk-info does now


Modified: people/michael/features/setup_harddisks_2/implementation/lib/init.pm
===================================================================
--- people/michael/features/setup_harddisks_2/implementation/lib/init.pm	2008-06-02 15:16:54 UTC (rev 4927)
+++ people/michael/features/setup_harddisks_2/implementation/lib/init.pm	2008-06-02 22:32:06 UTC (rev 4928)
@@ -163,7 +163,7 @@
 ################################################################################
 sub phys_dev {
   my ($dev) = @_;
-  if ($dev =~ m{^/dev/(i2o/hd[a-t]|sd[a-t]|hd[a-t])(\d+)?$})
+  if ($dev =~ m{^/dev/(i2o/hd[a-t]|sd[a-t]{1,2}|hd[a-t])(\d+)?$})
   {
     defined($2) or return (1, $1, -1);
     return (1, "/dev/$1", $2);




More information about the Fai-commit mailing list