pcp
[Top] [All Lists]

Re: Bug in case 232 is root caused.

To: kenmcd@xxxxxxxxxxxxxxxxx
Subject: Re: Bug in case 232 is root caused.
From: Keith Owens <kaos@xxxxxxx>
Date: Sat, 25 Jan 2003 10:49:17 +1100
Cc: "Zhang, Sonic" <sonic.zhang@xxxxxxxxx>, "PCP (E-mail)" <pcp@xxxxxxxxxxx>
In-reply-to: Your message of "Sat, 25 Jan 2003 09:21:40 +1100." <Pine.LNX.4.44.0301250919450.25555-100000@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: pcp-bounce@xxxxxxxxxxx
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.


<Prev in Thread] Current Thread [Next in Thread>