File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2-
3-
4-
52 #
63 # Copyright (C) 2010 Cloud.com, Inc. All rights reserved.
74 #
@@ -71,19 +68,23 @@ mount|grep -v sunrpc|grep nfs 1> /dev/null 2>&1
7168if [ $? -eq 0 ]
7269then
7370 echo " NFS is currently mounted"
74-
7571 # check for write access
76- MOUNTPT=` mount| grep -v sunrpc| grep nfs| awk ' {print $3}' `
77- echo Mount point is $MOUNTPT
78- touch $MOUNTPT /foo
79- if [ $? -eq 0 ]
80- then
81- echo " Good: Can write to mount point"
82- rm $MOUNTPT /foo
83- else
84- echo " ERROR: Cannot write to mount point"
85- echo " You need to export with norootsquash"
86- fi
72+ for MOUNTPT in ` mount| grep -v sunrpc| grep nfs| awk ' {print $3}' `
73+ do
74+ if [ $MOUNTPT != " /proc/xen" ] # mounted by xen
75+ then
76+ echo Mount point is $MOUNTPT
77+ touch $MOUNTPT /foo
78+ if [ $? -eq 0 ]
79+ then
80+ echo " Good: Can write to mount point"
81+ rm $MOUNTPT /foo
82+ else
83+ echo " ERROR: Cannot write to mount point"
84+ echo " You need to export with norootsquash"
85+ fi
86+ fi
87+ done
8788else
8889 echo " ERROR: NFS is not currently mounted"
8990 echo " Try manually mounting from inside the VM"
You can’t perform that action at this time.
0 commit comments