/[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.1 - (show annotations) (download)
Thu Jun 28 01:39:54 2012 UTC (12 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-usbdisksmanager-0_2-26_el4_sme, smeserver-usbdisksmanager--
local patch and fixing panel

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-27 21:27:51.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 @@ -395,11 +395,20 @@ sub subdevices ($)
14 }
15 elsif ($udevinfo =~ /couldn\'t get the class device/)
16 {
17 +
18 $disques{$i}{DEVTYPE}= "$tr_unknown";
19 }
20 else
21 {
22 - $disques{$i}{DEVTYPE}= $udevinfo;
23 + my $infobis=`cat /proc/mdstat |grep -o md[0-9]*`;
24 + if ($infobis =~ /$name/)
25 + {
26 + $disques{$i}{DEVTYPE}= "RAID";
27 + }
28 + else
29 + {
30 + $disques{$i}{DEVTYPE}= $udevinfo;
31 + }
32 }
33 $i++;
34 }

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