mirror of https://github.com/apache/cloudstack.git
Fix in XenServer, when do primarystorage downlaod command, mount secondary storage
as readonly. And umount with options -fl to avoid hang if at that time NFS server down
This commit is contained in:
parent
17abb3e5d4
commit
aad64a5170
|
|
@ -10,7 +10,7 @@ usage() {
|
|||
cleanup()
|
||||
{
|
||||
if [ ! -z $localmp ]; then
|
||||
umount $localmp
|
||||
umount -fl $localmp
|
||||
if [ $? -eq 0 ]; then
|
||||
rm $localmp -rf
|
||||
fi
|
||||
|
|
@ -48,7 +48,7 @@ if [ $? -ne 0 ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
mount $mountpoint $localmp
|
||||
mount $mountpoint $localmp -r
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "6#cann't mounbt $mountpoint to $localmp"
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue