/[smecontribs]/rpms/smeserver-usbdisksmanager/contribs7/smeserver-usbdisksmanager-0.2-patch1.patch
ViewVC logotype

Contents of /rpms/smeserver-usbdisksmanager/contribs7/smeserver-usbdisksmanager-0.2-patch1.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Thu Jun 28 05:45:08 2012 UTC (12 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-usbdisksmanager-0_2-27_el4_sme, HEAD
Changes since 1.1: +27 -15 lines
patch1 previously forgotten

1 diff -up smeserver-usbdisksmanager-0.2/root/etc/e-smith/web/functions/usbdisks.patch1 smeserver-usbdisksmanager-0.2/root/etc/e-smith/web/functions/usbdisks
2 --- smeserver-usbdisksmanager-0.2/root/etc/e-smith/web/functions/usbdisks.patch1 2007-04-09 15:58:21.000000000 -0400
3 +++ smeserver-usbdisksmanager-0.2/root/etc/e-smith/web/functions/usbdisks 2012-06-28 01:41:43.000000000 -0400
4 @@ -341,7 +341,7 @@ sub subdevices ($)
5 my %mounted=`mount`;
6 my $mounted=`mount`;
7 my %fstab= `cat /etc/fstab`;
8 - my @blkid= `/sbin/blkid`;
9 + my @blkid= `/sbin/blkid -c /dev/null`;
10 my %disques;
11 my $i = 0;
12 #my %hashes = (clef =>"valeur", clef2 => "valeur2", [%tablo], %table);
13 @@ -394,13 +394,29 @@ sub subdevices ($)
14 $disques{$i}{DEVTYPE}= "SCSI_SATA";
15 }
16 elsif ($udevinfo =~ /couldn\'t get the class device/)
17 - {
18 - $disques{$i}{DEVTYPE}= "$tr_unknown";
19 + {
20 + my $infobis=`cat /proc/mdstat |grep -o md[0-9]*`;
21 + if ($infobis =~ /$name/)
22 + {
23 + $disques{$i}{DEVTYPE}= "RAID";
24 + }
25 + else
26 + {
27 + $disques{$i}{DEVTYPE}= "$tr_unknown";
28 + }
29 }
30 else
31 {
32 - $disques{$i}{DEVTYPE}= $udevinfo;
33 - }
34 + my $infobis=`cat /proc/mdstat |grep -o md[0-9]*`;
35 + if ($infobis =~ /$name/)
36 + {
37 + $disques{$i}{DEVTYPE}= "RAID";
38 + }
39 + else
40 + {
41 + $disques{$i}{DEVTYPE}= $udevinfo;
42 + }
43 + }
44 $i++;
45 }
46 return %disques;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed