Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp574056ybi; Fri, 24 May 2019 08:08:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0G+YiKgvnocBsm1SGL3R+sjGZHPu2jc7+DYRhdDnunrasXmA6638extnU6gcwsVwDjt50 X-Received: by 2002:a17:902:5c6:: with SMTP id f64mr106517773plf.208.1558710531822; Fri, 24 May 2019 08:08:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558710531; cv=none; d=google.com; s=arc-20160816; b=zWjnpAe4t38dSPXIW+DEChHAIiaXbakZrV6bKK4sUuedHsXw4bxmbg8V7MccQ6GwMr 38AJs0el59FFv44D9PuRAPkfeV8ev1B7TXkhzyVfXIO76qKCN+/Pa+l0Ks7i2bIfBT2i 6T7/0xBvVIOeHmQpTqwt9u/4MXXGCPVnJzIvnd7kc1vBY4UgayBq/tfsiSrTpEBrGDW9 SXM8kENtYTPEzP1JNgNVoV8biA/p5X6jZTx6JZN+SZME+vFgsBVxAU44ZlT2lIslLsDf qxyGOtvdq7wTwsRhZpolDvUQDXFXMjaTWgkscASL+HNHTTHuFGfhnQz7yXLiuDyTIFq5 hi/g== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=S/dI7RPZUEcSKp8/h6JMeuRz0w3v7kHcfuFfinU4KSI=; b=zTK2pRCbnwfGNVh02gxZ92YgFxvY/T2oE0ymE4poMvxRpb5EEwUFkxbf/m/tR2c7yu uwn/lm38B+94XCmD4kYpGzNLYyvgtsnqQSP0HJa2xK+ZDJkmwi2QWcZlcqTOYNqN1hx7 jdKeshTAXFv8kF5CSiR9x/JMuwqfCtNf0TNWGqA8IYm3MkudpT0+sn1DXucZTcg8AqpQ 3nsfvXc0U2vT/CXeaf3uwFquudv56EAGuxaGJqQQSTtVFzzW9O4c7VXl5gTvDOK7rrsW K6buvaOwb6pg4/7BWiGl4JP34G9GDgabDadeIwIRXzwiZBtyw3W7CofQHG/+zrQPFAG7 p+uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-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 b91si229488plb.180.2019.05.24.08.08.24; Fri, 24 May 2019 08:08:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-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-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389206AbfEXPHq (ORCPT + 99 others); Fri, 24 May 2019 11:07:46 -0400 Received: from fieldses.org ([173.255.197.46]:33118 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388995AbfEXPHq (ORCPT ); Fri, 24 May 2019 11:07:46 -0400 Received: by fieldses.org (Postfix, from userid 2815) id BAAAABD2; Fri, 24 May 2019 11:07:45 -0400 (EDT) Date: Fri, 24 May 2019 11:07:45 -0400 From: "J. Bruce Fields" To: Amir Goldstein Cc: Stefan Metzmacher , Ralph =?utf-8?B?QsO2aG1l?= , Jeremy Allison , Linux NFS Mailing List , Volker.Lendecke@sernet.de, devel@lists.nfs-ganesha.org, Jeff Layton , samba-technical , Trond Myklebust Subject: Re: Better interop for NFS/SMB file share mode/reservation Message-ID: <20190524150745.GB22420@fieldses.org> References: <20190214210652.GC9216@fieldses.org> <20190305214748.GD27437@fieldses.org> <20190306151150.GC2426@fieldses.org> <1ade4724a4e505baf7b7c23a76e44d58b931da1f.camel@kernel.org> <20190306210743.GE19279@jra3> <5ebdb58b-26d9-c0f2-bd67-883bc4678ac7@samba.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, May 24, 2019 at 10:12:10AM +0300, Amir Goldstein wrote: > Some of you may have already seen the reports from my session at LSF/MM > on Samba/NFS interop: https://lwn.net/Articles/788335/ > > It should not be a surprise to anyone here to know that I have had interesting > and productive conversations with NFS folks about improving samba interop. > It should not be a surprise to anyone here to know that the rest of the audience > was, generally speaking, uninterested in the problem. Eh, especially after a couple days of highly technical talks and people have trouble focusing on stuff outside their area. I wouldn't take that as opposition, if that's what you mean. I think the only place where there's any entrenched opposition is (alas) ACLs. Lease/lock stuff, for example, should be no problem. It's mainly just a matter of people finding time. > Which provides a re-enforcement to the point I was trying to make in session - > The path of least resistance for NFS-Samba interop is the communicate with > each other (both human and software wise) and try to leave VFS out of the > discussion for as much as possible (hence dropping linux-fsdevel from > this thread). I've got a strong preference for doing stuff in the VFS. Maybe the approaches aren't incompatible--if we can do something without new kernel interfaces for now, it doesn't rule out later moving some of the logic into the kernel if that helps. That said, I'm not comfortable depending on an assumption that knfsd and SMB are the only users of a filesystem. If we're going to introduce some new kind of lock, for example, I'd like it enforced against everyone. In knfsd, we broke that rule for open deny modes and I think it was a mistake. --b. > An idea that has already been thrown around is to use some samba daemon as > an arbitrator for opening files and locks. Of course, this would be an > opt-in feature > for NFS servers. > > For example, can we use fanotify permission hooks to delegate access control > checks from knfsd to a daemon? Right now, the information in > permission events is > rather minimal, but as an fanotify developer, I can assure you, that > we can enrich the > information passed by knfsd on open permission events if that is deemed useful. > > I will be attending SambaXP, so if any of the Samba guys would like to, we could > find a slot in the Hallway track or at a local bar to discuss those options.