diff options
author | ramon <ramongomez@us.es> | 2013-06-20 07:22:29 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2013-06-20 07:22:29 +0000 |
commit | 7376c5b92947dec97b37520ce69a2823c592d6d0 (patch) | |
tree | dbee8c24b4cbf8a548e299d865a5f2964e5c55ff /client/engine/FileSystem.lib | |
parent | 9dba4c18fc815323f642910189aee79e3749dba0 (diff) |
#602: Función {{{ogExtendFs}}} comprueba correctamente que el sistema de ficheros se ha desmontado antes de extenderlo.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3918 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/FileSystem.lib')
-rwxr-xr-x | client/engine/FileSystem.lib | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/client/engine/FileSystem.lib b/client/engine/FileSystem.lib index d54b95a4..42e3003b 100755 --- a/client/engine/FileSystem.lib +++ b/client/engine/FileSystem.lib @@ -154,7 +154,10 @@ if [ "$DOMOUNT" ]; then [ -n "$PART" ] || ogRaiseError $OG_ERR_PARTITION "$1 $2" || return $? # Indicar nuevo error else ogUnmount $1 $2 2>/dev/null - ogIsMounted $1 $2 && ogRaiseError $OG_ERR_PARTITION "$1 $2" || return $? # Indicar nuevo error + if ogIsMounted $1 $2; then + ogRaiseError $OG_ERR_PARTITION "$1 $2" # Indicar nuevo error + return $? + fi fi # Error si el sistema de archivos está bloqueado. if ogIsLocked $1 $2; then |