From owner-freebsd-fs@FreeBSD.ORG Tue Oct 12 03:21:58 2010 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 E2533106564A; Tue, 12 Oct 2010 03:21:58 +0000 (UTC) (envelope-from daichi@ongs.co.jp) Received: from natial.ongs.co.jp (natial.ongs.co.jp [202.216.246.90]) by mx1.freebsd.org (Postfix) with ESMTP id A04478FC12; Tue, 12 Oct 2010 03:21:58 +0000 (UTC) Received: from [192.168.2.3] (blexe.ongs.co.jp [202.216.246.93]) by natial.ongs.co.jp (Postfix) with ESMTPSA id DA2A112543B; Tue, 12 Oct 2010 12:21:56 +0900 (JST) References: <20101004123725.65d09b9e.daichi@ongs.co.jp> <20101005153926.88b4c1e1.daichi@freebsd.org> <201010111150.00785.jhb@freebsd.org> Message-Id: <91E542A6-331C-4164-84FE-187916338B60@ongs.co.jp> From: Daichi GOTO To: John Baldwin In-Reply-To: <201010111150.00785.jhb@freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: iPad Mail (7B500) Mime-Version: 1.0 (iPad Mail 7B500) Date: Tue, 12 Oct 2010 12:22:18 +0200 Cc: "freebsd-fs@freebsd.org" , Daichi GOTO , "freebsd-current@freebsd.org" , Garrett Cooper Subject: Re: fcntl always fails to delete lock file, and PID is always -6464 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: Tue, 12 Oct 2010 03:21:59 -0000 Sent from my iPad On Oct 11, 2010, at 5:50 PM, John Baldwin wrote: > On Tuesday, October 05, 2010 2:39:26 am Daichi GOTO wrote: >> Next step discussion engaged from this research I guess. >> >> Should we do change FreeBSD's fcntl(2) to return correct l_pid >> when called with F_SETLK? Or keep current behavior?? >> I want to hear other developers ideas and suggetions. > > POSIX doesn't say that F_SETLK returns a valid l_pid, so I think FreeBSD's > current behavior is fine. Yes, I agree. POSIX says so. > -- > John Baldwin