Path: utzoo!utgpu!watserv1!watmath!att!pacbell.com!ucsd!usc!cs.utexas.edu!uunet!comp.vuw.ac.nz!cc-server4.massey.ac.nz!G.Eustace From: G.Eustace@massey.ac.nz (Glen Eustace) Newsgroups: comp.protocols.nfs Subject: Avoiding resource waits on unavailable hard mounted fs Message-ID: <1991Feb14.035507.28805@massey.ac.nz> Date: 14 Feb 91 03:55:07 GMT Organization: Massey University, Palmerston North, New Zealand Lines: 17 X-Reader: NETNEWS/PC Version 2.1 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. A short time out would be acceptable. Can anyone suggest a system call that will allow this. -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Glen Eustace, Software Manager, Computer Centre, Massey University, Palmerston North, New Zealand. EMail: G.Eustace@massey.ac.nz Phone: +64 63 69099 x7440, Fax: +64 63 505 607, Timezone: GMT-12