From owner-freebsd-fs@FreeBSD.ORG Wed Aug 26 04:47:30 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A4F0106568D for ; Wed, 26 Aug 2009 04:47:30 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 032BD8FC20 for ; Wed, 26 Aug 2009 04:47:29 +0000 (UTC) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.3/8.14.3) with ESMTP id n7Q4KvWw079882 for ; Wed, 26 Aug 2009 00:20:58 -0400 (EDT) (envelope-from mi+thun@aldan.algebra.com) Message-ID: <4A94B829.3090202@aldan.algebra.com> Date: Wed, 26 Aug 2009 00:20:57 -0400 From: "Mikhail T." User-Agent: Thunderbird 2.0.0.22 (X11/20090711) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: semantics of fcntl() with l_len being 0 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 04:47:30 -0000 Hello! I'm curious, whether a file, that's locked (via fcntl) with l_start and l_len being 0 is supposed to be appendable... I would think so, but I notice, that when spamprobe (see mail/spamprobe) chews on my spam mailbox, I can not append a new piece of spam to the file -- my imap-server is waiting for spamprobe to finish. The fcntl(2) says: ``len = 0 means until end of file''. Is that ``until the end of file AT THE TIME OF LOCKING'' or simply ``no other lock until we are done''? Thanks. Yours, -mi