New issue 1 by megabast: Ping NFS server
http://code.google.com/p/tsumufs/issues/detail?id=1
Hi, I've found a solution to ping nfs server by using a shell command :
rpcinfo -t @host nfs version
"version" is a number like 2, 3 or 4
if server is unreachable, it will respond :
rpcinfo: RPC: Timed out
program 100003 version 3 is not available
if nfs server is accessible, it will respond:
program 100003 version 3 ready and waiting
So create a .sh script:
#!/bin/sh
rpcinfo -t @host nfs 3
then, include this code into the PingServerOk function:
import subprocess
import os
retval=subprocess.call('your absolute script path')
it seems to work well when I use tsumufs
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings