Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1700595imm; Thu, 16 Aug 2018 00:45:03 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxfMbCKVmwyzueKeonmkcjBGqOD4HpOcu9XsgkjX/ycTbYTxtnkCop6gYhG69BIGYwgACAy X-Received: by 2002:a17:902:b486:: with SMTP id y6-v6mr27534508plr.27.1534405503289; Thu, 16 Aug 2018 00:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534405503; cv=none; d=google.com; s=arc-20160816; b=LC+Q3Tx5nMmbWxUKwWcLXyR+ZIVe6B+RfwzW25T6YwO9n0uQI6KCfMs6lK/eCRycIc W2PHOCU2Y4+QOKbITLTbwQZ+gar/tv+wpezo8vAmh/kC2P2vFiyo2IJdyhA3HZvVqx0k fbohD6nP0vonHSdqEVM6hdtB9oSCQ7CP+kMixi2hYft5pvf6NgkkSSiZUL6mJoXhHl4U s+Uv8kIt2MTTEjjHjkJWLslEKoJN9WdctziFwnsk1TRgeYUNrNSkfIheLbMrOXVqAvl3 8XGlmgucYkspC6KpHDjdSzNuhIrku1MzKLVXLeLjVLWZE1iEmlftnGQfRkE83LSr7iiU LgAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=KeQZOMeMpOKGfaXsOwragLqCQdx5PxTXiqFC1w5ec2o=; b=fzmCTO8eB7996bhptM6M9NL7TD3Jccc/0G6t0692TkCXF91KEcpdhK7P2VnNim5TeO PsY+3XbZRBi9XWy3OTP5eh7FQutqVN2qJ6VBR7DQL14D5j3IN3qTc9u0RoOThNAWQsYs E1xT2Y86VjBlP/UuzsWSeImBSbjSnpBmLMeBmDCnLwNKbRS9drxZdetyKLRP85TvDvkQ 5U9BnArawAheF4g3WcGD08EsHC5MWEmzg/NXNLYk+GgVPw2M7GNhL/+KwFlLOLdBfnmG TcVSl513qBhgyKxtyhMun15CPEr5kmPLL9UPVA0Q8faghmSTfOCnO969JEJuX1/4s51K ukVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ndh7A6Bm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e14-v6si21187582pff.332.2018.08.16.00.44.37; Thu, 16 Aug 2018 00:45:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ndh7A6Bm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388101AbeHPGrZ (ORCPT + 99 others); Thu, 16 Aug 2018 02:47:25 -0400 Received: from mail-pl0-f52.google.com ([209.85.160.52]:42197 "EHLO mail-pl0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726273AbeHPGrZ (ORCPT ); Thu, 16 Aug 2018 02:47:25 -0400 Received: by mail-pl0-f52.google.com with SMTP id g6-v6so1395292plq.9; Wed, 15 Aug 2018 20:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KeQZOMeMpOKGfaXsOwragLqCQdx5PxTXiqFC1w5ec2o=; b=ndh7A6BmYHPOD23jqIvMqCSRv6PBzF0SlAbP2rAo8dGCZc8ddjx+54DZ9LyOCaQkGw +ztjFmoDhxJSwoBAbNj3oMt8BZpkizXaGz0Za0mdyEevuP86SEqEWlHsRfg5UDY3NoRD gk1xvkzubSSyJTNIJoF7Kiy593FfpcF8tHB6RMr7XHnyDmqmG9hkh/F2X+UAvwPj4005 bF5s43W+QBBulo18niqbdEYyoLeA+GleHjyPqeifAPzaj+40mXca8EBdHb6aEQRF2/9S +Qi3G4hnFtDTr1AV+KigPkGVUfqdq4yonYGPm7CYxUUABGwWDN+j/kAvwnBGZc17MCr7 R2qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KeQZOMeMpOKGfaXsOwragLqCQdx5PxTXiqFC1w5ec2o=; b=XKMpaIMrNbgabqF30/SwYSYc6k9CdbpKORY6tpeMnrXGnBgHGTV4i8VSWtFBjrV3Cv 4XcMSVoizqGwo6DxazuPOz55UfUOJcsr4ydX1gKwwPzO+HkcPfdvtEuek1R7DkPPMWvr X9PrCjnrOI8BeBmlFtRqnqKM8zuv5o6ooFb0/EipUezlBVi8EHVfhWyO0WwZv6T1WIAy g9A/zTyfwSZ+9xJRHJ7d74ULxvrRlzX9aoDb9TjBIg9wFjg9L8ISv9BHhDKqEoEsPGZy aT3BejU9Xwb8VDPADV6Rgol9wTfsusE2oXE1MDrAVvIZmBICUn8KCDd/OUPeRI9VJNzE 3ZpQ== X-Gm-Message-State: AOUpUlHosXDOpqPWBUml3QJybl5euBZVWEVdq5+6bgif74NjCz1MvfuZ ZzU+lTiHHJmupc4FtclQyxXOT17KSv8N947keLN08adQ X-Received: by 2002:a17:902:20e9:: with SMTP id v38-v6mr27308351plg.107.1534391516749; Wed, 15 Aug 2018 20:51:56 -0700 (PDT) MIME-Version: 1.0 References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <17763.1534350685@warthog.procyon.org.uk> In-Reply-To: <17763.1534350685@warthog.procyon.org.uk> From: Steve French Date: Wed, 15 Aug 2018 22:51:45 -0500 Message-ID: Subject: Re: Should we split the network filesystem setup into two phases? To: David Howells Cc: Steve French , Al Viro , Linus Torvalds , ebiederm@redhat.com, linux-api@vger.kernel.org, linux-security-module@vger.kernel.org, linux-fsdevel , LKML , CIFS Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is worth further detailed discussion re:SMB3 as there are some fascinating protocol features that might help here, but my first thought is just the obvious one - this could help 'DFS' (the global name space feature almost all modern CIFS/SMB3 implement) work a little better in the client. A share can be represented by an array of \\server\share\path targets although typically only one except in the DFS case (and server can be an ipv4 or ipv6 address or host name (which could have multiple addresses). It could be over RDMA, TCP, and even other protocols (as the transport). There are various examples of DFS referrals in https://msdn.microsoft.com/en-us/library/cc227066.aspx section 4. But since SMB3 also supports transparent failover, and "share move" and "server move" features, as well as multichannel - I would like to better understand the patch set to see if it helps/hurts. But until I dive into the patch set more and try it, hard for me to speculate. Has anyone looked at the CIFS/SMB3 changes needed? On Wed, Aug 15, 2018 at 11:32 AM David Howells wrote: > > Having just re-ported NFS on top of the new mount API stuff, I find that I > don't really like the idea of superblocks being separated by communication > parameters - especially when it might seem reasonable to be able to adjust > those parameters. > > Does it make sense to abstract out the remote peer and allow (a) that to be > configured separately from any superblocks using it and (b) that to be used to > create superblocks? > > Note that what a 'remote peer' is would be different for different > filesystems: > > (*) For NFS, it would probably be a named server, with address(es) attached > to the name. In lieu of actually having a name, the initial IP address > could be used. > > (*) For CIFS, it would probably be a named server. I'm not sure if CIFS > allows an abstraction for a share that can move about inside a domain. CIFS/SMB3 has fairly mature support (in the protocol) for various types of share redirection (not just 'DFS' that is supported by most every NAS server, and Macs, Windows, Linux clients etc). There are also very interesting features introduced with SMB 3.1.1 allowing 'tree connect contexts" which some important servers in the last few years implement. This is worth more discussion - SMB3 (in particular the SMB3.1.1 dialect) has a lot of interesting features here. -- Thanks, Steve