From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 5 16:55:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B408416A41F for ; Wed, 5 Oct 2005 16:55:59 +0000 (GMT) (envelope-from rivers@dignus.com) Received: from dignus.com (client196-2.dsl.intrex.net [209.42.196.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0214843D4C for ; Wed, 5 Oct 2005 16:55:58 +0000 (GMT) (envelope-from rivers@dignus.com) Received: from lakes.dignus.com (lakes.dignus.com [10.1.0.3]) by dignus.com (8.13.1/8.12.9) with ESMTP id j95GtnbP002336 for ; Wed, 5 Oct 2005 12:55:49 -0400 (EDT) (envelope-from rivers@dignus.com) Received: (from rivers@localhost) by lakes.dignus.com (8.11.6/8.11.3) id j95GwRo35992 for freebsd-hackers@freebsd.org; Wed, 5 Oct 2005 12:58:27 -0400 (EDT) (envelope-from rivers) Date: Wed, 5 Oct 2005 12:58:27 -0400 (EDT) From: Thomas David Rivers Message-Id: <200510051658.j95GwRo35992@lakes.dignus.com> To: freebsd-hackers@freebsd.org X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on office.dignus.com Subject: flock() returns EHOSTUNREACH on 5.3 with 4.5 NFS server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 16:55:59 -0000 I'm applying flock() to a file that is on an NFS server. The program calling flock() is built on a 4.5 system, with the 4.5 libraries, etc... The NFS server is a 4.5-RELEASE system. The program running on a 4.5-release system doesn't display any problems. But - when I run that same program on a 5.3-RELEASE system, flock() returns with a -1 and sets errno to EHOSTUNREACH. Of course, the code is checking for EEOPNOTSUPP, but it doesn't expect to see EHOSTUNREACH from flock(). We changed it to set errno to zero to make sure that simply wasn't a dangling value in errno. Any ideas about what could be going on? Should flock() be setting errno to EHOSTUNREACH? And, as the file can be read, I don't understand where the EHOSTUNREACH comes from (the host is very reachable.) - Thanks! - - Dave Rivers - -- rivers@dignus.com Work: (919) 676-0847 Get your mainframe programming tools at http://www.dignus.com