• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Determine whether a NFS mount is actually reachable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determine whether a NFS mount is actually reachable


  • Subject: Re: Determine whether a NFS mount is actually reachable
  • From: Mike Mackovitch <email@hidden>
  • Date: Sat, 21 Feb 2015 15:18:30 -0800

On Sat, Feb 21, 2015 at 11:01:06PM +0100, Thomas Tempelmann wrote:
> (I realize this isn't really the best place to ask this question as it's
> rather a user-level API question, not a filesys designer's question, but I
> give it a try anyway because I didn't have luck finding answers elsewhere
> so far.)
>
> My question is: How can a user level app determine whether an automounted
> NFS share is currently accessible or not?

You can use getfsstat(..., ..., MNT_NOWAIT) to get the current list of mounted filesystems.
(Note: this will include things you may not consider a "filesystem" or "volume".
For example, synthetic autofs directories (/net, /home, /Network/Servers).)

However, whether a remote filesystem is "accessible" or not is never certain.
Even if you *just* accessed files on it, a millisecond later that server
may become inaccessible.

Network file systems attempt to make remote resources look like they are local.
Unfortunately, networks often do not like to cooperate.

HTH
--macko
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Determine whether a NFS mount is actually reachable
      • From: Thomas Tempelmann <email@hidden>
References: 
 >Determine whether a NFS mount is actually reachable (From: Thomas Tempelmann <email@hidden>)

  • Prev by Date: Re: Determine whether a NFS mount is actually reachable
  • Next by Date: Re: Determine whether a NFS mount is actually reachable
  • Previous by thread: Re: Determine whether a NFS mount is actually reachable
  • Next by thread: Re: Determine whether a NFS mount is actually reachable
  • Index(es):
    • Date
    • Thread