From: Kyle Moffett Subject: Re: [PATCH] AFS: Implement file locking Date: Fri, 25 May 2007 23:11:33 -0400 Message-ID: References: <20070524165554.22292.38887.stgit@warthog.cambridge.redhat.com> <20070526022342.GA20905@fieldses.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit Cc: David Howells , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org To: "J. Bruce Fields" Return-path: Received: from smtpout.mac.com ([17.250.248.174]:59875 "EHLO smtpout.mac.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859AbXEZDMI (ORCPT ); Fri, 25 May 2007 23:12:08 -0400 In-Reply-To: <20070526022342.GA20905@fieldses.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On May 25, 2007, at 22:23:42, J. Bruce Fields wrote: > On Thu, May 24, 2007 at 05:55:54PM +0100, David Howells wrote: >> + /* only whole-file locks are supported */ >> + if (fl->fl_start != 0 || fl->fl_end != OFFSET_MAX) >> + return -EINVAL; > > Do you allow upgrades and downgrades? (Just curious.) I was actually under the impression that OpenAFS had support for byte- range locking (as well as lock upgrade/downgrade); though IIRC there was some secondary protocol. That's probably why the support is so basic at the moment; David's getting the basics in first and the more complicated stuff can come later. Cheers, Kyle Moffett