On Sat, 25 Jan 2003 09:21:40 +1100 (EST),
kenmcd@xxxxxxxxxxxxxxxxx wrote:
>On Fri, 24 Jan 2003, Zhang, Sonic wrote:
>> I find the root cause of the bug in case 232.
>> NFS service daemon should be running before test this case.
>
>Excellent. Is there some test we could make for this, so that
>the qa script could issue a more useful error message ... the
>232.out.bad file was not that helpful in this case!
Quick and dirty, 99% reliable.
[ ! -s /var/lib/nfs/etab -a ! -s /etc/xtab ] && \
echo Either nfs is not running or nothing is exported
That will only fail if nfs has been killed -9 and not restarted, when
it will give a false positive.
To make it 100% reliable would take a program which contacted nfsd and
asked for a list of exported filesystems. Messy, needs portmapper code
as well.
|