diff options
author | irina <irinagomez@us.es> | 2013-05-27 10:37:31 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2013-05-27 10:37:31 +0000 |
commit | bcece6832f452f3e5f97f36d474e1d4335486802 (patch) | |
tree | ee50f3721dc38e618affbad0d320c820acee66bd /client/engine/Rsync.lib | |
parent | a86c559a86f0fab4cc96b31ef2d73a10c2f529c8 (diff) |
#565 restoreBaseImage: correccion error cuando la particion no se podia montar
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3825 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Rsync.lib')
-rwxr-xr-x | client/engine/Rsync.lib | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/client/engine/Rsync.lib b/client/engine/Rsync.lib index aa4e2d95..d157450b 100755 --- a/client/engine/Rsync.lib +++ b/client/engine/Rsync.lib @@ -93,42 +93,6 @@ fi } -#/** -# ogSetSizeInfo [REPO|CACHE] nombre_imagen extension tamaño -#@brief Configuramos la informacion del tamaño de los datos, para diferenciales -#@param 1 Repositorio [ REPO | CACHE ] (opcional en las completas) -#@param 2 Nombre Imagen Basica (opcional en las completas) -#@param 3 Extensión [ img | diff ] -#@param 4 Tamaño de los datos. -function ogSetSizeInfo () { -local DIRMOUNT UMOUNT - -if [ "$*" == "help" ]; then - ogHelp "$FUNCNAME" "$FUNCNAME [ REPO|CACHE ] image_name extension size_data " \ - "base image -> $FUNCNAME REPO Ubuntu12 img 34000000" \ - "diff image -> $FUNCNAME CACHE Windows7 diff 500000" - return -fi - -if [ $# -lt 4 ]; then - ogRaiseError $OG_ERR_FORMAT "$FUNCNAME [ REPO|CACHE ] image_name extension size_data " - return $? -fi - -DIRMOUNT=$(ogGetMountDir "$2" $3) -[ "$1" == "CACHE" -o "$1" == "cache" ] && DIRMOUNT="/tmp/$DIRMOUNT" || DIRMOUNT="$OGIMG/$DIRMOUNT" - -# Si no esta montada la imagen se monta. -[ -r $DIRMOUNT/ogimg.info ] && UMOUNT=false || ogMountImage $1 "$2" $3 -# se configura el tamaño -echo sed -i s/SIZEDATA/"$4"/g $DIRMOUNT/ogimg.info -sed -i s/SIZEDATA/"$4"/g $DIRMOUNT/ogimg.info -# se desmonta, si no estaba montada. -[ "$UMOUNT" == false ] || ogUnmountImage $1 "$2" $3 - - -} - function ogCreateInfoImage () { #/** # ogCreateInfoImage |