Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp571102ybn; Thu, 3 Oct 2019 09:02:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpzG2wOM+jDD0rdWYUkVfgCSCJRJpN7BnFrDKazxKg8x9piXhAyuvImUkhnsDieY0EA+Db X-Received: by 2002:a05:600c:351:: with SMTP id u17mr7276611wmd.1.1570118522518; Thu, 03 Oct 2019 09:02:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570118522; cv=none; d=google.com; s=arc-20160816; b=jkxC95AIwm+B/Wk2djC2QOahHA345SP2IfIF47bBdZRbmor3qIQunyArqUd0SJvWN9 9M2/lGonfcB8Nk8DX2igYvt9K+2h2p0183hpdhTvTraKC4pLnzFKYVbisPdyHqcO/1YD uSk6KfpTDVWrEzmjqPZsHhbcf0PZsI8VTraMVnhDJSUOzQPi59hScy++FqZqgi4IPdeT 2vXpxgyC6SPAf35Nu1jRjug95cEhYbun9iF/uNf8LEXdmih7JNjc22b+gj56fUtuHFlR ehfHmWOiZVsHASlZ7QxYVXqV6wSJWPWVTENBRMIvLYT6xjYDei7RVQ1927d+rU0CeB+o pLPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=i5M/oxM8mRfRAr2Zlrxnp/NU1Wc8JNrx7TGQ2HAcVqQ=; b=A83cHFI0eWLyT71Gh6r45o0TGaB58qXYlfa2Cb3XGuxhmyGd3/dJCoK6wLae9IvX0v y8iQhOtvELOuE++EFZknkwhlEAahq9IZhISjRH8j1JXCelEWt/0LKqOG+8pdQJ8esSGn DxA7EF15N6jeiRqeWAWcNDWl730tE6mYzYuM15kNCJzvn6p7LZoFsEXlUV1r6JCoz2Xm jEcLMm/y77Hd91D8J/5gaffNKBDV4SWS4pPlW/sr82QcH8C/LPtoeGBEUCZ/XwcW5ahE acrhysfoAxIvk56VifMnxygQDTDyKNuEZnS+Sdlnh6A/0MVoGlXK0igtXptI4tXJEb02 SI1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gl26si1520681ejb.17.2019.10.03.09.01.36; Thu, 03 Oct 2019 09:02:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-ext4-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729752AbfJCPhn (ORCPT + 99 others); Thu, 3 Oct 2019 11:37:43 -0400 Received: from fieldses.org ([173.255.197.46]:41654 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727302AbfJCPhn (ORCPT ); Thu, 3 Oct 2019 11:37:43 -0400 Received: by fieldses.org (Postfix, from userid 2815) id 195AB322; Thu, 3 Oct 2019 11:37:43 -0400 (EDT) Date: Thu, 3 Oct 2019 11:37:43 -0400 From: "J. Bruce Fields" To: Jeff Layton Cc: Ira Weiny , linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-ext4@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvdimm@lists.01.org, linux-mm@kvack.org, Dave Chinner , Jan Kara , Theodore Ts'o , John Hubbard , Dan Williams , Jason Gunthorpe Subject: Re: Lease semantic proposal Message-ID: <20191003153743.GA24657@fieldses.org> References: <20190923190853.GA3781@iweiny-DESK2.sc.intel.com> <5d5a93637934867e1b3352763da8e3d9f9e6d683.camel@kernel.org> <20191001181659.GA5500@iweiny-DESK2.sc.intel.com> <2b42cf4ae669cedd061c937103674babad758712.camel@kernel.org> <20191002192711.GA21386@fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Wed, Oct 02, 2019 at 04:35:55PM -0400, Jeff Layton wrote: > On Wed, 2019-10-02 at 15:27 -0400, J. Bruce Fields wrote: > > On Wed, Oct 02, 2019 at 08:28:40AM -0400, Jeff Layton wrote: > > > For the byte ranges, the catch there is that extending the userland > > > interface for that later will be difficult. > > > > Why would it be difficult? > > Legacy userland code that wanted to use byte range enabled layouts would > have to be rebuilt to take advantage of them. If we require a range from > the get-go, then they will get the benefit of them once they're > available. I can't see writing byte-range code for a kernel that doesn't support that yet. How would I test it? > > > What I'd probably suggest > > > (and what would jive with the way pNFS works) would be to go ahead and > > > add an offset and length to the arguments and result (maybe also > > > whence?). > > > > Why not add new commands with range arguments later if it turns out to > > be necessary? > > We could do that. It'd be a little ugly, IMO, simply because then we'd > end up with two interfaces that do almost the exact same thing. > > Should byte-range layouts at that point conflict with non-byte range > layouts, or should they be in different "spaces" (a'la POSIX and flock > locks)? When it's all one interface, those sorts of questions sort of > answer themselves. When they aren't we'll have to document them clearly > and I think the result will be more confusing for userland programmers. I was hoping they'd be in the same space, with the old interface just defined to deal in locks with range [0,∞). I'm just worried about getting the interface wrong if it's specified without being implemented. Maybe this is straightforward enough that there's not a risk, I don't know. --b.