Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp330702imm; Fri, 1 Jun 2018 01:29:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPnvQn+9teOv93YQPt4MYtw2fkwhxuSxOx6uwqyqPCPCzvqLDdI0zidikHgOpOZRpuLswL X-Received: by 2002:a62:6304:: with SMTP id x4-v6mr9958927pfb.94.1527841773984; Fri, 01 Jun 2018 01:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527841773; cv=none; d=google.com; s=arc-20160816; b=0ob6lCPsJc0STraIrBuzuVqAHNhVSc9yPsH4yws/DKNsHqdYWUMBYkaC9tAZAq0Sd9 +zLtzPkX3Pcr8c6MEiG7J0tbPWb8nntrIRqpigcti9kKhyjyvc2O4Mq/XZt5zIP0CaAT 6vcOopLZI976N9nzdW7RH0TJewtm9+NAhsRuMC7IDdcxOAYT4A74REokHWc0U+CQuW0P kvXlGML8cLqZBhDe85gCTlWF3ZBRBsrA8kGP22PfW9midk/mMqdW0Rb/Nx2GDyG8anZX UaOkvJyUv1PydIJILJUq9qsaKJnVJRtYnlT0AmnHv6Nno0AcC+JGzuAUSHl7vfu6nMup AsYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization :arc-authentication-results; bh=O9TRLLQuRLmvQdA7UDgvNzw5R0AGJAb0/wgdJqfLC7g=; b=NC4MXhSc/XM0JZEGQE3LsXHOrwo5NVgZt8aNEDSbkvw5ZWbLoMPoYPH+7wthqLL9RQ mCziXjPxAfFmCRHbbMGXyw6zu71C3cyQLt14bF3UK4VxnOfbts/Yal+dw3X6q+BfrnI4 pevPWX7rVemaUwdzijr3DlCXIMaEimaymTW2L5wJCCAPJ4FiDr56Na+PsVuUBr8ZAyWD VTsIdT022uVFZSBlnZSsaDefUeKG53ppHOi5Bio0prbXg4QO8m0DPnz9Smfb+JUSmv+Z BBSIQ8TdQSluCrzegSszQyseJZJHg3L43L4ecMmKhVjST3Mg+ZjtQjLA3h92TTERlvs/ RjWQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k22-v6si4509807pll.416.2018.06.01.01.29.19; Fri, 01 Jun 2018 01:29:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751386AbeFAI1t (ORCPT + 99 others); Fri, 1 Jun 2018 04:27:49 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57924 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750861AbeFAI1p (ORCPT ); Fri, 1 Jun 2018 04:27:45 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 1595340137F6; Fri, 1 Jun 2018 08:27:45 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-121-245.rdu2.redhat.com [10.10.121.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id 191A884432; Fri, 1 Jun 2018 08:27:43 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20180601063928.GS30522@ZenIV.linux.org.uk> References: <20180601063928.GS30522@ZenIV.linux.org.uk> <152720672288.9073.9868393448836301272.stgit@warthog.procyon.org.uk> <152720691829.9073.10564431140980997005.stgit@warthog.procyon.org.uk> <20180601062654.GA32397@infradead.org> To: Al Viro Cc: dhowells@redhat.com, Christoph Hellwig , linux-fsdevel@vger.kernel.org, linux-afs@lists.infradead.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org Subject: Re: [PATCH 30/32] vfs: Allow cloning of a mount tree with open(O_PATH|O_CLONE_MOUNT) [ver #8] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7066.1527841663.1@warthog.procyon.org.uk> Date: Fri, 01 Jun 2018 09:27:43 +0100 Message-ID: <7067.1527841663@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 01 Jun 2018 08:27:45 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 01 Jun 2018 08:27:45 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'dhowells@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Al Viro wrote: > > Instead of overloading this on open having a specific syscalls just > > seems like a much saner idea. > > It's not just mount API; these can be used independently of that. > Think of the uses where you pass those to ...at() and you'll see > a bunch of applications of that thing. I kind of agree with Christoph on this point. Yes, you can use the resultant fd for other things, but that doesn't mean it has to be obtained initially through open() or openat() rather than, say, a new pick_mount() syscall. Further, having more parameters available gives us the opportunity to change the settings on any mounts we create at the point of creation. David