summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-04-11 07:18:55 +0000
committerramon <ramongomez@us.es>2016-04-11 07:18:55 +0000
commitc680f93660157e2720cf878e2fb6f5f212fb6c81 (patch)
treec71501ce1ff9eb351762cbb8b9d3cf21acaab886 /client/engine
parentebe57095c2c713acfd1bd062b82f96d4c6d2205f (diff)
#744: Incluir comprobación de bloqueo de disco en función {{{ogRestoreDiskImage}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4875 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Image.lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/engine/Image.lib b/client/engine/Image.lib
index 9a4b13d7..49e65e22 100755
--- a/client/engine/Image.lib
+++ b/client/engine/Image.lib
@@ -631,6 +631,10 @@ if ogIsImageLocked "$IMGFILE"; then
ogRaiseError $OG_ERR_LOCKED "$MSG_IMAGE $1, $2.$IMGTYPE"
return $?
fi
+if ogIsDiskLocked $3; then
+ ogRaiseError $OG_ERR_LOCKED "$MSG_DISK $3"
+ return $?
+fi
# Solicitamos la generación de la instruccion a ejecutar
PROGRAM=$(ogRestoreImageSyntax $IMGFILE $DISK)