summaryrefslogtreecommitdiffstats
path: root/client/engine/Image.lib
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-04-28 08:50:16 +0000
committerramon <ramongomez@us.es>2011-04-28 08:50:16 +0000
commiteb9424faad0ac3598ca3d53733ac746b3c07aa0b (patch)
tree46ab2ba63d43d8d3c079e84287b1740337493083 /client/engine/Image.lib
parent09ff7b6a1074b502ff0a65147ef7dc862d8aac27 (diff)
branches/version1.0: aplicar cambios de la rama trunk para desarrollar version 1.0.1
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1920 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Image.lib')
-rwxr-xr-xclient/engine/Image.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib
index 399e3da1..c85354a1 100755
--- a/client/engine/Image.lib
+++ b/client/engine/Image.lib
@@ -457,6 +457,7 @@ touch $IMGDIR/$(basename "${!#}").lock
#@exception OG_ERR_NOTFOUND fichero de imagen o partición no detectados.
#@exception OG_ERR_LOCKED partición bloqueada por otra operación.
#@exception OG_ERR_IMAGE error al restaurar la imagen del sistema.
+#@exception OG_ERR_IMGSIZEPARTITION Tamaño de la particion es menor al tamaño de la imagen.
#@todo Comprobar incongruencias partición-imagen, control de errores, definir parámetros, caché/repositorio, etc.
#@version 0.1 - Integracion para Opengnsys - HIDRA:RestaurarImagen{EXT3, NTFS}.sh; EAC: RestorePartitionFromImage() en Deploy.lib
#@author Ramon Gomez, ETSII Universidad de Sevilla
@@ -490,7 +491,7 @@ IMGFILE=$(ogGetPath "$1" "$2.$IMGTYPE")
IMGSIZE=$(ogGetImageSize "$1" "$2")
PARTSIZE=$(ogGetPartitionSize $3 $4)
if [ $IMGSIZE -gt $PARTSIZE ]; then
- ogRaiseError $OG_ERR_PARTITION "$IMGSIZE > $PARTSIZE"
+ ogRaiseError $OG_ERR_IMGSIZEPARTITION "$IMGSIZE > $PARTSIZE"
return $?
fi