-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from IBM/master
sync
- Loading branch information
Showing
166 changed files
with
3,764 additions
and
5,556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/bin/bash | ||
########################################################### | ||
# fuseUmount.sh | ||
# | ||
# Copyright IBM Corporation 2015,2016. All Rights Reserved | ||
# | ||
# This program is licensed under the terms of the Eclipse Public License | ||
# v1.0 as published by the Eclipse Foundation and available at | ||
# http://www.eclipse.org/legal/epl-v10.html | ||
# | ||
# U.S. Government Users Restricted Rights: Use, duplication or disclosure | ||
# restricted by GSA ADP Schedule Contract with IBM Corp. | ||
########################################################### | ||
|
||
umask 0027 | ||
|
||
# exit on any script failure | ||
#set -eo pipefail | ||
BSCFS_MNT_PATH="/bscfs" | ||
UNMOUNTRETRIES=12 | ||
SLEEPSEC=5 | ||
if [ "$#" -ne 0 ]; then | ||
BSCFS_MNT_PATH=$1 | ||
fi | ||
grep -c $BSCFS_MNT_PATH /proc/mounts &>>/dev/null | ||
grepRC=$? | ||
if [ "$grepRC" -ne 0 ] ; then | ||
echo $BSCFS_MNT_PATH not mounted `date` > /tmp/fuseUnmount.debug | ||
exit 0 | ||
fi | ||
|
||
if [ "$#" -gt 1 ]; then | ||
UNMOUNTRETRIES=$2 | ||
fi | ||
|
||
if [ "$#" -gt 2 ]; then | ||
SLEEPSEC=$3 | ||
fi | ||
|
||
echo $0 BSCFS_MNT_PATH=$BSCFS_MNT_PATH UNMOUNTRETRIES=$UNMOUNTRETRIES SLEEPSEC=$SLEEPSEC > /tmp/fuseUnmount.debug | ||
date >> /tmp/fuseUnmount.debug | ||
CMDrc=29 | ||
for (( i=1; i<=$UNMOUNTRETRIES; i++ )) | ||
do | ||
fusermount -u $BSCFS_MNT_PATH &>> /tmp/fuseUnmount.debug | ||
CMDrc=$? | ||
if [ CMDrc == 0 ]; then | ||
exit 0 | ||
fi | ||
echo CMDrc=$CMDrc &>> /tmp/fuseUnmount.debug | ||
sleep($SLEEPSEC) | ||
done | ||
exit CMDrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.