Skip to content

Commit

Permalink
fs-lib: fix do_mount return code
Browse files Browse the repository at this point in the history
make exit path similar to netfs.sh do_mount

Resolves: rhbz#728086

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Feb 27, 2012
1 parent 2b75fe8 commit ba09b94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rgmanager/src/resources/utils/fs-lib.sh
Expand Up @@ -518,6 +518,14 @@ do_mount() {
ocf_log info "mounting $dev on $mp"
ocf_log err "mount $fstype_option $mount_options $dev $mp"
mount $fstype_option $mount_options "$dev" "$mp"
ret_val=$?
if [ $ret_val -ne 0 ]; then
ocf_log err "\
'mount $fstype_option $mount_options $dev $mp' failed, error=$ret_val"
return 1
fi

return 0
}


Expand Down

0 comments on commit ba09b94

Please sign in to comment.