diff options
author | irina <irinagomez@us.es> | 2014-03-18 09:34:14 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2014-03-18 09:34:14 +0000 |
commit | ebc31ef5509f9558ad085d64333ee8d0d28610a0 (patch) | |
tree | ccc38cbdcbb9c6087551fde17ff18bc8f7c15f4b /client/shared/scripts/createDiffImage | |
parent | 251c9e4f84eeeb86d015df4d76d45ebe3a36d189 (diff) |
#636 #565 mensajes log en tiempo real: elimina referencia a comandos. Interfaces crear imagenes sincronizadas: se elimina el permiso de escritura por samba.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4190 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/createDiffImage')
-rwxr-xr-x | client/shared/scripts/createDiffImage | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/shared/scripts/createDiffImage b/client/shared/scripts/createDiffImage index 200d10a3..b24505a0 100755 --- a/client/shared/scripts/createDiffImage +++ b/client/shared/scripts/createDiffImage @@ -157,7 +157,7 @@ ogCreateInfoImage $1 $2 $3 "$4" "${DIFFTYPE}" #Calculamos el tamaƱo de la imagen: ogMount $1 $2 >/dev/null ogLock $1 $2 -ogEcho log session -n " $MSG_SCRIPTS_CREATE_SIZE" +ogEcho log session " $MSG_SCRIPTS_CREATE_SIZE" cd $ORIG SIZEDATA=$(grep -v "\/$" /tmp/ogimg.info | tr '\n' '\0'| du -x -c --files0-from=- 2>/dev/null|tail -n1 |cut -f1) let SIZEREQUIRED=$SIZEDATA*$ZSYNC/100 @@ -167,7 +167,7 @@ let SIZEREQUIRED=$SIZEDATA*$ZSYNC/100 # Comprueba que quepa en el repositorio [ "$3" == "CACHE" -o "$3" == "cache" ] && SIZEFREE=$(ogGetFreeSize `ogFindCache`) && ogMountCache >/dev/null [ "$3" == "REPO" -o "$3" == "repo" ] && SIZEFREE=$(df -k | grep $OGIMG | awk '{print $4}') -ogEcho log session " $SIZEREQUIRED $SIZEFREE" +ogEcho log session " $SIZEREQUIRED $SIZEFREE" [ $SIZEREQUIRED -gt $SIZEFREE ] && exit $(ogRaiseError session $OG_ERR_CACHESIZE "$3"; echo $?) TIMEAUX3=$[SECONDS-TIME2] @@ -196,7 +196,7 @@ ogEcho log session "[70] $MSG_HELP_ogSyncCreate" # Copio los datos a la imagen diferecial : ogSyncCreate $1 $2 $3 "$5" $DIFFTYPE TIMEAUX6=$[SECONDS-TIMEAUX5] -ogEcho log session -e " $MSG_SCRIPTS_TASK_END, $MSG_SCRIPTS_TIME_PARTIAL: $[TIMEAUX6/60]m $[TIMEAUX6%60]s" +ogEcho log session " $MSG_SCRIPTS_TASK_END, $MSG_SCRIPTS_TIME_PARTIAL: $[TIMEAUX6/60]m $[TIMEAUX6%60]s" # Reducimos la imagen diferencial -> solo para kernel <= 3.7, imagenes con FS ext4 ogEcho log session "[80] $MSG_HELP_ogReduceImage: $3 /$4.$IMGEXT" |