Path: utzoo!utgpu!watserv1!watmath!att!pacbell.com!decwrl!sun-barr!newstop!eastapps!hinode!geoff From: geoff@hinode.East.Sun.COM (Geoff Arnold @ Sun BOS - R.H. coast near the top) Newsgroups: comp.protocols.nfs Subject: Re: Avoiding resource waits on unavailable hard mounted fs Message-ID: <4301@eastapps.East.Sun.COM> Date: 14 Feb 91 20:53:44 GMT References: <1991Feb14.035507.28805@massey.ac.nz> Sender: news@East.Sun.COM Reply-To: geoff@east.sun.com (Geoff Arnold @ Sun BOS - R.H. coast near the top) Organization: Sun Microsystems PC-NFS Engineering Lines: 22 Quoth G.Eustace@massey.ac.nz (Glen Eustace) (in <1991Feb14.035507.28805@massey.ac.nz>): #I am trying to write some code that will determine whether an NFS #mounted partition is currently accessible. The filesystem is hard #mounted and most file system will hang on a resource wait until such #time as the server is back up again. As this is part of a larger #program I don't want this to occur. # #I want to determine whether an access will hang prior to attempting #to access the file system in order to take some evasive action. Well, I assume that you know the identity of the server. In that case, you could code up a simple RPC call to procedure 0 of the NFS program on the server, setting the timeouts appropriately. If you're going to do this very often, you probably want to use some of the lower-level API calls to bypass the portmap call. Geoff -- Geoff Arnold, PC-NFS architect, Sun Microsystems. (geoff@East.Sun.COM) -- ------------------------------------------------------------------------------ -- No cute comments. War isn't cute. -- ------------------------------------------------------------------------------