diff options
author | irina <irinagomez@us.es> | 2016-06-17 11:44:28 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2016-06-17 11:44:28 +0000 |
commit | a32f9ad8ba978e64151c5fb081eb2699dc9383ac (patch) | |
tree | 1e3475c2f7fafd1d54f73d618817ad572b19056c /admin/WebConsole/asistentes | |
parent | eb1f900959a581eb41d2861809f750687abcf7e4 (diff) |
#512 Asistente de particionado: se adapta a los nuevos parámetros de initCache y se corrige errata (si el tamaño de la cache no cambiaba la borraba).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4965 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/WebConsole/asistentes')
-rw-r--r-- | admin/WebConsole/asistentes/jscripts/asistentes.js | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/admin/WebConsole/asistentes/jscripts/asistentes.js b/admin/WebConsole/asistentes/jscripts/asistentes.js index 4aa3e7a1..587e1234 100644 --- a/admin/WebConsole/asistentes/jscripts/asistentes.js +++ b/admin/WebConsole/asistentes/jscripts/asistentes.js @@ -116,6 +116,7 @@ function codeParticionado(form){ function codeParticionadoMSDOS (form) { var partCode=""; var logicalCode=""; + var sizecacheCode=""; var cacheCode; var cacheSize; var extended=false; @@ -161,14 +162,15 @@ function codeParticionadoMSDOS (form) { if(form.part4.value == "CACHE"){ if (form.check4.checked) { if (form.size4.value == "0") { - cacheCode="\ + sizecacheCode="\ ogEcho session \"[20] $MSG_HELP_ogGetCacheSize\"\n \ -sizecache=`ogGetCacheSize` \n \ +sizecache=`ogGetCacheSize` \n "; + cacheCode="\ ogEcho session \"[30] $MSG_HELP_ogUpdatePartitionTable "+n_disk+"\"\n \ ogDeletePartitionTable "+n_disk+" \n \ ogExecAndLog command ogUpdatePartitionTable "+n_disk+" \n \ ogEcho session \"[50] $MSG_HELP_ogCreateCache\"\n \ -initCache "+n_disk+" $sizecache &>/dev/null \n "; +initCache "+n_disk+" $sizecache NOMOUNT &>/dev/null \n "; } else { if (form.size4.value == "CUSTOM") { cacheSize = form.size4custom.value; @@ -180,7 +182,7 @@ ogEcho session \"[30] $MSG_HELP_ogUpdatePartitionTable "+n_disk+"\"\n \ ogDeletePartitionTable "+n_disk+" \n \ ogUpdatePartitionTable "+n_disk+" \n \ ogEcho session \"[50] $MSG_HELP_ogCreateCache\"\n \ -initCache " + n_disk + " " + cacheSize + " &>/dev/null"; +initCache " + n_disk + " " + cacheSize + " NOMOUNT &>/dev/null"; } } else { cacheCode="\ @@ -224,6 +226,7 @@ partCode += " EMPTY:0"; } form.codigo.value="\ +" + sizecacheCode + " \n \ ogCreatePartitionTable "+n_disk+" "+tipo_part_table +" \n \ ogEcho log session \"[0] $MSG_HELP_ogCreatePartitions \"\n \ ogEcho session \"[10] $MSG_HELP_ogUnmountAll "+n_disk+"\"\n \ @@ -246,6 +249,7 @@ ogExecAndLog command session log ogListPartitions "+n_disk+" \n"; function codeParticionadoGPT (form) { var partCode=""; var logicalCode=""; + var sizecacheCode=""; var cacheCode=""; var cacheSize; var extended=false; @@ -260,14 +264,15 @@ function codeParticionadoGPT (form) { // Solo tratamos la particion 4 como cache, si se selecciono este tipo if(nPart == 4 && form.partGPT4.value == "CACHE") { if (form.sizeGPT4.value == "0") { - cacheCode="\ + sizecacheCode="\ ogEcho session \"[20] $MSG_HELP_ogGetCacheSize\"\n \ -sizecache=`ogGetCacheSize` \n \ +sizecache=`ogGetCacheSize` \n "; + cacheCode="\ ogEcho session \"[30] $MSG_HELP_ogUpdatePartitionTable "+n_disk+"\"\n \ ogDeletePartitionTable "+n_disk+" \n \ ogExecAndLog command ogUpdatePartitionTable "+n_disk+" \n \ ogEcho session \"[50] $MSG_HELP_ogCreateCache\"\n \ -initCache "+ n_disk +" $sizecache &>/dev/null \n "; +initCache "+ n_disk +" $sizecache NOMOUNT &>/dev/null \n "; } else { if (form.sizeGPT4.value == "CUSTOM") { cacheSize = form.sizeGPT4custom.value; @@ -279,7 +284,7 @@ ogEcho session \"[30] $MSG_HELP_ogUpdatePartitionTable "+n_disk+"\"\n \ ogDeletePartitionTable "+n_disk+" \n \ ogUpdatePartitionTable "+n_disk+" \n \ ogEcho session \"[50] $MSG_HELP_ogCreateCache\"\n \ -initCache " + n_disk +" "+ cacheSize + " &>/dev/null"; +initCache " + n_disk +" "+ cacheSize + " NOMOUNT &>/dev/null"; } } else{ var partType=eval("form.partGPT"+nPart); @@ -310,6 +315,7 @@ partCode += " EMPTY:0"; } } form.codigo.value="\ +" + sizecacheCode + " \n \ ogCreatePartitionTable "+n_disk+" "+tipo_part_table +" \n \ ogEcho log session \"[0] $MSG_HELP_ogCreatePartitions "+n_disk+"\"\n \ ogEcho session \"[10] $MSG_HELP_ogUnmountAll "+n_disk+"\"\n \ |