summaryrefslogtreecommitdiffstats
path: root/runcthon
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-02-26 12:49:27 -0500
committerSteve Dickson <steved@redhat.com>2010-02-26 12:49:27 -0500
commit1ed047180fbd37ed66c9e9a2b9cea6f503567c16 (patch)
treef5cf03fb5ee6bb99d266cf58ba1038ced3b91b2e /runcthon
parentd8d75e7d8e2f95497d2d23d46390b183ffdf2fb4 (diff)
downloadcthon04-1ed047180fbd37ed66c9e9a2b9cea6f503567c16.tar.gz
cthon04-1ed047180fbd37ed66c9e9a2b9cea6f503567c16.tar.xz
cthon04-1ed047180fbd37ed66c9e9a2b9cea6f503567c16.zip
Added the --fsc flag
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'runcthon')
-rwxr-xr-xruncthon8
1 files changed, 7 insertions, 1 deletions
diff --git a/runcthon b/runcthon
index f5553ef..f95e346 100755
--- a/runcthon
+++ b/runcthon
@@ -42,6 +42,8 @@ sec=$5
else
mnt=/mnt
fi
+ [ "$fsc" -eq 1 ] && mntargs="$mntargs,fsc"
+
mkdir -p $mnt/nfsv$vers$proto || exit 1
mntpoint="-m $mnt/nfsv$vers$proto"
exportdir="-p $serverdir/nfsv$vers$proto"
@@ -85,7 +87,7 @@ mkdirs()
}
trap 'echo SIGINT; pkill runcthon; pkill server; exit 1 ' SIGINT
trap 'echo; echo -n "Done:"; date; exit 2' SIGTERM
-Usage="$0 --mkdirs [dir] |--unmountall|--server|--serverdir|--noudp|--dokrb5|--onlykrb5|--nov4|--onlyv3|--onlyv4|--minver <ver>"
+Usage="$0 --mkdirs [dir] |--unmountall|--server|--serverdir|--noudp|--dokrb5|--onlykrb5|--nov4|--onlyv3|--onlyv4|--minver <ver>|--fsc"
noudp=0
dokrb5=0
@@ -94,6 +96,7 @@ nov4=0
onlyv3=0
onlyv4=0
minver=0
+fsc=0
while [ -n "$1" ]
do
case $1 in
@@ -139,6 +142,9 @@ do
"--onlyv4" )
onlyv4=1
;;
+ "--fsc" )
+ fsc=1
+ ;;
"--minver" )
minver=$2
shift