summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/includes/pintaParticiones.php
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-09-23 11:48:41 +0000
committerramon <ramongomez@us.es>2014-09-23 11:48:41 +0000
commitfd1846fe10d86fdc5df52e97536816c64ac33960 (patch)
treeecc0bfe90470d054ecd0994fb1fea5942eed45e0 /admin/WebConsole/includes/pintaParticiones.php
parent2851a935492a9b29c346f631c1409f0ef81402b9 (diff)
#51: Integrar código del ticket:51 para detectar metadispositivos (LVM, RAID hardware y Multipath).
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4395 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/includes/pintaParticiones.php')
-rw-r--r--admin/WebConsole/includes/pintaParticiones.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/admin/WebConsole/includes/pintaParticiones.php b/admin/WebConsole/includes/pintaParticiones.php
index 33ab50da..210f4728 100644
--- a/admin/WebConsole/includes/pintaParticiones.php
+++ b/admin/WebConsole/includes/pintaParticiones.php
@@ -85,6 +85,8 @@ function pintaParticiones($cmd,$configuraciones,$idordenadores,$cc)
break;
case 2: $disktable[$tbKeys[$k]["numdisk"]] = "GPT";
break;
+ case 3: $disktable[$tbKeys[$k]["numdisk"]] = "LVM";
+ break;
default: $disktable[$tbKeys[$k]["numdisk"]] = "";
}
}
@@ -92,11 +94,16 @@ function pintaParticiones($cmd,$configuraciones,$idordenadores,$cc)
echo'<tr height="16">'.chr(13);
echo'<td align="center">&nbsp;</td>'.chr(13);
echo'<td align="center">'.$tbKeys[$k]["numpar"].'</td>'.chr(13);
- if (is_numeric ($tbKeys[$k]["tipopar"])) {
- echo '<td align="center"><em>'.sprintf("%02X",$tbKeys[$k]["tipopar"]).'</em></td>'.chr(13);
+ if ($disktable[$tbKeys[$k]["numdisk"]] == "LVM") {
+ echo '<td></td>'.chr(13);
}
else {
- echo '<td align="center">'.$tbKeys[$k]["tipopar"].'</td>'.chr(13);
+ if (is_numeric ($tbKeys[$k]["tipopar"])) {
+ echo '<td align="center"><em>'.sprintf("%02X",$tbKeys[$k]["tipopar"]).'</em></td>'.chr(13);
+ }
+ else {
+ echo '<td align="center">'.$tbKeys[$k]["tipopar"].'</td>'.chr(13);
+ }
}
$filesys=tomaSistemasFicheros($tbKeys[$k]["numpar"],$idordenadores,false,$tbKeys[$k]["numdisk"]);
echo'<td align="center">&nbsp;'.$filesys.'&nbsp;</td>'.chr(13);