Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp933632imm; Fri, 13 Jul 2018 08:41:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeSHkbUQpGrq5j8w4eyaaFO88BYGnxs1vvTXOTSzCGj5D7EilGvzyGbnq2j36Z+E1/0w2EO X-Received: by 2002:a63:d916:: with SMTP id r22-v6mr6459624pgg.381.1531496501584; Fri, 13 Jul 2018 08:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531496501; cv=none; d=google.com; s=arc-20160816; b=MQuVylcERnlGyy7qulyBEyl0gSZRu5Bb6Bc3mypwUjKeaqSaaOjDL53daDAg9MCb6U hhzKpnlJwk/wgH27D5h5Cv9JAuZ5VUvdKU5B49PaBjMTD2Neon4ZvED6KwIA+Rk+DT3z TzYu4WzjhDx5MJbvgDIpMy66SQzCDpt+Jy/x9E8VH7QY9Ro2TNLnD2D6smNQIMkInfHA qm+ZrnyyvH6+1N0zbUzcMkEOyiM2US43cOHXv0gfTmn/qEn8jMsU7I1csMQuE+unE2A5 BiMzqYh+/F+jgSxmtTMDmgR9MhpEfnAeqeVOCmBR+wxIfFh85TUlfCDo2HvXgwo15Way 8v9w== 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=13+CEIzAif27Iq8olRUL+g8XXOv60VeX0fPGCSWilt8=; b=klp9vxz5D0pSXAtG+cDH2Akbqtv8VEjLkIfLAkpCXXw9oMy339btnDV1NAnQJM9wH7 BMU2ZgrxkuOXLq73PVo2TSJ401CI0WjLsHHuQtjzIhvOAvSzwcQSd95VCA8mIPd1ab7d q9Cl0eaKnrwprClWqfM4fcB9p8MvyLgYkSj5RV+Y+6/49e/3RQlBT2Op+DbJ3tMX3P6U ZgeCEGNojv67Vt6Npi1FlUT2wGttKlmk7jKoUY59aSRL6soEqxg9XGrGLZnfqVtyH4HH f/EcJN0wjTvu+KzfvyS9FKxd7iqjMddiKZ82363LPxnDXbV+7LzU1ym/izyly/AQlXmw IyGg== 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 r63-v6si23789582plb.366.2018.07.13.08.41.27; Fri, 13 Jul 2018 08:41:41 -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 S1729786AbeGMPzk (ORCPT + 99 others); Fri, 13 Jul 2018 11:55:40 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60148 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729725AbeGMPzk (ORCPT ); Fri, 13 Jul 2018 11:55:40 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C6C6E7DAC8; Fri, 13 Jul 2018 15:40:30 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-149.rdu2.redhat.com [10.10.120.149]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6ACD62156889; Fri, 13 Jul 2018 15:40:29 +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: References: <153126248868.14533.9751473662727327569.stgit@warthog.procyon.org.uk> <153126264966.14533.3388004240803696769.stgit@warthog.procyon.org.uk> <686E805C-81F3-43D0-A096-50C644C57EE3@amacapital.net> <22370.1531293761@warthog.procyon.org.uk> <7002.1531407244@warthog.procyon.org.uk> <338BC3C4-F3E7-48F0-A82E-2C7295B6640E@amacapital.net> <17749.1531429218@warthog.procyon.org.uk> <21131.1531488422@warthog.procyon.org.uk> To: Andy Lutomirski Cc: dhowells@redhat.com, Linus Torvalds , Andrew Lutomirski , Al Viro , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn , Tycho Andersen Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26575.1531496428.1@warthog.procyon.org.uk> Date: Fri, 13 Jul 2018 16:40:28 +0100 Message-ID: <26576.1531496428@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 13 Jul 2018 15:40:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Fri, 13 Jul 2018 15:40:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.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 Andy Lutomirski wrote: > > Whilst I'm at it, do we want the option of doing the equivalent of > > mountat()? I.e. offering the option to open all the device files used by > > a superblock with dfd and AT_* flags in combination with the filename? > > > > Isn't that more or less what I was suggesting? Yes, you suggested that. I'm asking if we actually need that. > ... I also suggested just an fd and letting the caller open the file itself. I'm not entirely sure, but that might prevent the filesystem from being able to use it, since userspace might then prevent the filesystem getting exclusive holdership. David