Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3111288imm; Mon, 13 Aug 2018 06:16:32 -0700 (PDT) X-Google-Smtp-Source: AA+uWPy77DKDI8rThqFEeKWlaIPlxOGnFdyWsUJMuEXlsRjJl1/pUtKPEVrw60BtHs6b4tl4x6Le X-Received: by 2002:a62:411a:: with SMTP id o26-v6mr18823258pfa.111.1534166192592; Mon, 13 Aug 2018 06:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534166192; cv=none; d=google.com; s=arc-20160816; b=WJxyI5I5XnfuhsM7bnERE3xsuiBe2DHXO7dHqprzwegVyg9qM9pxjQ+6q3XYTB5BuN BrWozOGrjUeGfvG5bI8uSr/4xDRGRCnJy02FQIQdqguP5YBtnv9cRn/EtQVz/FF5JgwY jZTEIQVqxXawGLSSQdTt3hrCwwc/rVoJ8H6Ixcz4fFnhjVxklNWKs+JYCDsRNta8zxtb sC3tns6kwyO1SAIiYWLC8bOfYyZFAiDFnjRXXrM/JqkNHnFb0hdwysmbS8d726Zs/1T6 lntoQrJT5uFEih1Wh/Ta5UmV+QYkpQdftHaAQVksLmXdpDEmWS5LwBjuu/KYoJ/drATV GmmQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zHPm9ENqpRL5SUv/M4L/XhK5ZNN5AtWTxqBNwdbXolU=; b=IylSK8RK3kNmCBKs5FPqQXkckSabk5RjBemV5aasb5Tf/KvqN0McZbkGkja6mE4+Yi 79WKaY3L+gAoIY1aWmz1Vv2bfgsQi6dpYgc4/gWsUt2HQ38kXs91s2XZum8wQVZ8lFsj gR/g0Vd21Mu8OUD4+jg2+G5I7DclBqkAIVQoTpNSHRV2HmRvxp4SUkVi9wRfKUNF+4cq JcH7i1Etg8WyPye9QgPHBARij4T0vU2yWuO2bzVwsClwgwQyo56NFzPuMrabe8QWUO4C 8Bh2Ahp/RMPwXgtQXnmiMsVJKsxScFULfrdKybEgslA9H0QX64+ZJ2gm1KQIdpWawqYx lrLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=ZhOwE0yL; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si15292114pgv.296.2018.08.13.06.16.17; Mon, 13 Aug 2018 06:16:32 -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=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=ZhOwE0yL; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729846AbeHMPgN (ORCPT + 99 others); Mon, 13 Aug 2018 11:36:13 -0400 Received: from mail-oi0-f47.google.com ([209.85.218.47]:33040 "EHLO mail-oi0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729764AbeHMPgN (ORCPT ); Mon, 13 Aug 2018 11:36:13 -0400 Received: by mail-oi0-f47.google.com with SMTP id 8-v6so27048490oip.0 for ; Mon, 13 Aug 2018 05:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zHPm9ENqpRL5SUv/M4L/XhK5ZNN5AtWTxqBNwdbXolU=; b=ZhOwE0yLROyEjVqOLQVR23N5/aAulWoKXf+MA+uyTxI1HS9N1G8sqk3r6WHPChVxWx 14btbueYpTYApZLBjt3PPou49qK8TOsrhY8v4HQHclT3Qz7I44PnmxnuGcYkOdSkk7cT iHrxDrFn7g4iVSHGAVquFT+uqcRrQeo8Ui9Ds= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zHPm9ENqpRL5SUv/M4L/XhK5ZNN5AtWTxqBNwdbXolU=; b=qK/G5YPh86i6ekKGK5XGF/lcxM+TSEGOPsUJkWwB9vWTzXPCO+uDacc5Jte2kX33Dh 0dvEL/Ky7ySiIijG4HPhAo3+Yapw2WXCqSH8Jhk6mnZ7hfT44h4ap7QeR5IrAZLfrIth PKXVrGScQycPl7jUxWIV/QpqphLq2et/Y7N47RaHJbIoQMEsLMCsYfJV2+dy5PhbWO+v bFrZlityCN49HzxrQFR1AjhDdjeT9qn41oZTYpbTUNgNiXxkDwc24XF2r8ZzMz83P08K EriM71QxOjdVd1htmCEFE/ieMcPItDI+D7aJGQwiRMAzkQvEkpVUbQQpG8mC1H4z51Jd Q3dQ== X-Gm-Message-State: AOUpUlEC4m/SvEnbc5yh0rufai20uXW2bwTcIohIpSArdAa/ZVM99AQ1 qeds1J09aMS4AU7z9pV8p9MHQVyD9jOOl/HbaaaFMQ== X-Received: by 2002:aca:e350:: with SMTP id a77-v6mr18994238oih.250.1534164843442; Mon, 13 Aug 2018 05:54:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:113c:0:0:0:0:0 with HTTP; Mon, 13 Aug 2018 05:54:02 -0700 (PDT) X-Originating-IP: [212.96.48.140] In-Reply-To: <20180811015815.GD6515@ZenIV.linux.org.uk> References: <153313703562.13253.5766498657900728120.stgit@warthog.procyon.org.uk> <87d0uqpba5.fsf@xmission.com> <20180810151606.GA6515@ZenIV.linux.org.uk> <87pnypiufr.fsf@xmission.com> <20180811015815.GD6515@ZenIV.linux.org.uk> From: Miklos Szeredi Date: Mon, 13 Aug 2018 14:54:02 +0200 Message-ID: Subject: Re: BUG: Mount ignores mount options To: Al Viro Cc: "Eric W. Biederman" , David Howells , John Johansen , Tejun Heo , selinux@tycho.nsa.gov, Paul Moore , Li Zefan , Linux API , apparmor@lists.ubuntu.com, Casey Schaufler , fenghua.yu@intel.com, Greg Kroah-Hartman , Eric Biggers , LSM , Tetsuo Handa , Johannes Weiner , Stephen Smalley , tomoyo-dev-en@lists.sourceforge.jp, cgroups@vger.kernel.org, Linus Torvalds , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, "Theodore Y. Ts'o" 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 On Sat, Aug 11, 2018 at 3:58 AM, Al Viro wrote: > What I'm saying is that the entire superblock-creating > machinery - all of it - is nothing but library helpers. With the > decision of when/how/if they are to be used being down to filesystem > driver. Your "first mount"/"additional mount" simply do not map > to anything universally applicable. Why so? (Note: using the "mount" terminology here is fundamentally broken to start with, mounts have nothing to do with this... Filesystem instance is better word.) You bring up NFS as an example, but creating and/or reusing an nfs client instance connected to a certain server is certainly a clear and well defined concept. The question becomes: does it make sense to generalize this concept and export it to userspace with the new API? You know the Plan 9 fs interface much better, but to me it looks like there's a separate namespace for filesystem instances, and the mount command just refers to such an instance. So there's no comparing of options or any such horror, just the need to explicitly instantiate a new instance when necessary. Doesn't sound very difficult to implement in the new API. Thanks, Miklos