For some NFS Servers, mount option tcp is required

This commit is contained in:
anthony 2011-08-08 15:24:49 -07:00
parent e8c2fa4e8e
commit ef2802aaed
5 changed files with 7 additions and 7 deletions

View File

@ -48,7 +48,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $mountpoint $localmp -r
mount -o tcp,ro $mountpoint $localmp
if [ $? -ne 0 ]; then
echo "6#can't mount $mountpoint to $localmp"
exit 0

View File

@ -56,7 +56,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $mountpoint $localmp
mount -o tcp $mountpoint $localmp
if [ $? -ne 0 ]; then
echo "6#can't mount $mountpoint to $localmp"
exit 0

View File

@ -47,7 +47,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $snapshoturl $snapshotdir
mount -o tcp $snapshoturl $snapshotdir
if [ $? -ne 0 ]; then
rmdir $snapshotdir
echo "5#can not mount $snapshoturl to $snapshotdir"
@ -63,7 +63,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $templateurl $templatedir
mount -o tcp $templateurl $templatedir
if [ $? -ne 0 ]; then
rmdir $templatedir
templatedir=""

View File

@ -46,7 +46,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $snapshoturl $snapshotdir
mount -o tcp $snapshoturl $snapshotdir
if [ $? -ne 0 ]; then
rmdir $snapshotdir
echo "5#can not mount $snapshoturl to $snapshotdir"
@ -62,7 +62,7 @@ if [ $? -ne 0 ]; then
exit 0
fi
mount $templateurl $templatedir
mount -o tcp $templateurl $templatedir
if [ $? -ne 0 ]; then
rmdir $templatedir
templatedir=""

View File

@ -286,7 +286,7 @@ def mount(remoteDir, localDir):
makedirs(localDir)
try:
cmd = ['mount', remoteDir, localDir]
cmd = ['mount', '-o', 'tcp', remoteDir, localDir]
txt = util.pread2(cmd)
except:
txt = ''