> From: Oded Arbel
> Ira Abramov wrote:
>
> >How can one get a list of mounted filesystems without getting blocked
> >running "df" or "mount" with a dead NFS server? I am writing a little
> How about reading /etc/mtab ?
And then do what with that info? You just get a static list as maintained
by mount/unmount. It still won't prevent you from accessing a broken
NFS server.
That's unless I'm missing some Linux-specific trickery...
But back to Ira's original question and Oded's suggestion combined -
1. get the list (from /etc/mtab or wherever it is under /proc)
2. If it's a "host:/directory" format then try pinging the remote host.
3. You can also try rpcping and I suspect there is also some sort of nfsping
to check accessability of the nfs server.
4. Access the filesystem.
--Amos
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]