diff options
author | adv <adv@uma.es> | 2011-02-24 11:47:24 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-02-24 11:47:24 +0000 |
commit | 92a6c37b6693e3e6e229406cb67d89e895409f75 (patch) | |
tree | 5aee1efc3e1830737af1c84958f80c4af9603465 /client/engine/Cache.lib | |
parent | bd27de2ab3220cb8f6cd1186367dbf86a2d25738 (diff) |
Cache.lib 1.0 correccion multiples montajes/desmontajes de la cache.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1497 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Cache.lib')
-rwxr-xr-x | client/engine/Cache.lib | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/client/engine/Cache.lib b/client/engine/Cache.lib index 79a800c6..341525e2 100755 --- a/client/engine/Cache.lib +++ b/client/engine/Cache.lib @@ -251,6 +251,9 @@ fi #@version 0.91 - Adaptacion a la cache local de OpenGnSys. #@author Ramon Gomez, ETSII Universidad de Sevilla #@date 2010/03/16 +#@version 1.0 - Correccion multiples montajes de cache. +#@author Antonio J. Doblas Viso, Universidad de Malaga +#@date 2011/02/24 #*/ ## function ogMountCache () { @@ -260,9 +263,8 @@ if [ "$*" == "help" ]; then return fi -OGCAC=$(ogMountFs $(ogFindCache) 2>/dev/null) || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" || return $? -echo $OGCAC -export OGCAC +ogMountFs $(ogFindCache) 2>/dev/null || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" || return $? + } @@ -278,6 +280,9 @@ export OGCAC #@version 0.91 - Adaptacion a la cache local de OpenGnSys. #@author Ramon Gomez, ETSII Universidad de Sevilla #@date 2010/03/16 +#@version 1.0 - Correccion multiples montajes de cache. +#@author Antonio J. Doblas Viso, Universidad de Malaga +#@date 2011/02/24 #*/ ## function ogUnmountCache () { @@ -290,6 +295,7 @@ if [ "$*" == "help" ]; then fi CACHE=$(ogFindCache) || ogRaiseError $OG_ERR_PARTITION "$MSG_NOCACHE" +ogIsMounted $CACHE || return 0 ogUnmountFs $CACHE # Borrar enlace simbólico de /mnt/ParticiónCache. rm -f $(ogDiskToDev $CACHE | sed 's/dev/mnt/') |