From owner-freebsd-hackers Fri Nov 5 1:56:34 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 4119115836 for ; Fri, 5 Nov 1999 01:56:29 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11jg6L-0001iR-00; Fri, 05 Nov 1999 11:56:09 +0200 From: Sheldon Hearn To: Jos Backus Cc: freebsd-hackers@freebsd.org Subject: Re: ftpd feature: lock file being stored In-reply-to: Your message of "Thu, 04 Nov 1999 23:05:30 +0100." <19991104230530.B84284@jos.bugworks.com> Date: Fri, 05 Nov 1999 11:56:09 +0200 Message-ID: <6598.941795769@axl.noc.iafrica.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 04 Nov 1999 23:05:30 +0100, Jos Backus wrote: > This patch adds a ``-x'' flag to ftpd, which instructs ftpd to obtain > an exclusive lock on files it commits to disk as a result of a store > operation. This way it becomes easy to tell whether a download has > finished, in case the file needs to be copied someplace else (as in my > case). So fstat(1) doesn't show you that the file is opened to ftpd? You really have to lock the files to help you with this problem? Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message