mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
For some NFS Servers, mount option tcp is required
This commit is contained in:
parent
e8c2fa4e8e
commit
ef2802aaed
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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=""
|
||||
|
||||
@ -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=""
|
||||
|
||||
@ -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 = ''
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user