CLOUDSTACK-2398: ssvm-check.sh failed with permission error

RPCbind service is running in the 4.2 systemVMs resulting in ssvm-check
trying to write to the mountpoint. Avoid writing to the rpc_pipefs.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>
This commit is contained in:
Rajesh Battala 2013-05-15 17:21:46 +05:30 committed by Prasanna Santhanam
parent 49e39e51f2
commit 11f85c9c9e

View File

@ -67,12 +67,12 @@ fi
# check to see if we have the NFS volume mounted # check to see if we have the NFS volume mounted
echo ================================================ echo ================================================
mount|grep -v sunrpc|grep nfs 1> /dev/null 2>&1 mount|grep -v sunrpc|grep -v rpc_pipefs|grep nfs 1> /dev/null 2>&1
if [ $? -eq 0 ] if [ $? -eq 0 ]
then then
echo "NFS is currently mounted" echo "NFS is currently mounted"
# check for write access # check for write access
for MOUNTPT in `mount|grep -v sunrpc|grep nfs| awk '{print $3}'` for MOUNTPT in `mount|grep -v sunrpc|grep -v rpc_pipefs|grep nfs| awk '{print $3}'`
do do
if [ $MOUNTPT != "/proc/xen" ] # mounted by xen if [ $MOUNTPT != "/proc/xen" ] # mounted by xen
then then