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:
Frank 2011-05-16 13:50:45 -07:00
parent 17abb3e5d4
commit aad64a5170
1 changed files with 2 additions and 2 deletions

View File

@ -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