From owner-freebsd-arch Sun Mar 17 10:11:11 2002 Delivered-To: freebsd-arch@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 4A22337B444; Sun, 17 Mar 2002 10:11:09 -0800 (PST) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.2/8.12.2) with ESMTP id g2HIB9lv011797; Sun, 17 Mar 2002 10:11:09 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.2/8.12.2/Submit) id g2HI9sjH011764; Sun, 17 Mar 2002 10:09:54 -0800 (PST) Date: Sun, 17 Mar 2002 10:09:53 -0800 From: "David O'Brien" To: John De Boskey Cc: Arch List Subject: Re: ftpd ESTALE recovery patch Message-ID: <20020317100953.A11577@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20020317084153.A3942@FreeBSD.org> <20020317085350.E10393@dragon.nuxi.com> <20020317124451.A7636@bsdwins.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020317124451.A7636@bsdwins.com>; from jwd@FreeBSD.ORG on Sun, Mar 17, 2002 at 12:44:51PM -0500 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Mar 17, 2002 at 12:44:51PM -0500, John De Boskey wrote: > ----- David O'Brien's Original Message ----- > > On Sun, Mar 17, 2002 at 08:41:53AM -0800, John De Boskey wrote: > > > In a busy cluster, a generated file being handed out by > > > ftp is failing due to an ESTALE condition. The following > > > patch fixes the problem. Failure to open the file is also > > > logged when -l is specified twice (see ftpd(8)). > > > > This really does seem like a specific problem of your environment; and > > this patch is something that really only scratches an itch of yours due > > to how you've setup your environment. > > I'm sorry, but I have to disagree. ESTALE is an errno that indicates > that an application can retry an operation with success. Then why does so little of our applications do anything when errno == ESTALE? tcsh, sendmail, mail, amd, tcpdump, perl, and kerberosIV. Tcsh just exits, so does mail. sendmail treats it as a permanent failure. Tcpdump's usage of ESTALE is just to to be able to printout more information about a sniffed packet. Perl just passes ESTALE to running scripts. kerberosIV treats it the same as ENOENT. > If you can provide a better loop/timeout mechanism, I will be glad > to review and incorporate it. It should not be committed until there is a more consistent handling of it in of it in the /usr/src rather than just committing it peice meal to only ftpd. -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message