Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp286409imm; Thu, 12 Jul 2018 19:36:52 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdTnMKnxlEIUwLD5di/cGB2ngs0bBid9Q4cMTLamwSoTf4z8EiaBERh+voT6IRyKIP2H1b8 X-Received: by 2002:a17:902:b20d:: with SMTP id t13-v6mr4574569plr.121.1531449412830; Thu, 12 Jul 2018 19:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531449412; cv=none; d=google.com; s=arc-20160816; b=NfUSYhWkDIv8zIwSZDV2bIDy3fgUJo8mWU9f0PfxFbA6nc+D18jwhQdCPdoAfBvmk3 Miw9jWkuW3FAbqaA1s4GEXK34kLPjeDvGsd/j9hfIi188ehqiKjurqXj6+ID7J3KH0q/ 1F2Bfw58n2uOLeFFzfXS4AuBfaktnLjIhdKPUtiICvebnlrTRnHgwVbTXbgl0EN4JyNX iZ0C/SYB6L17sagsRVRMGwu5EUznrHz8tp3TpbYI0Ye3hYfHEEU0o2xZBI5gDIXzmTPr dSDWx7MtxbISn9rg3YJ3rdmU2l93yY+S5Seuj0ZzXYFZcdl7OOo+F6gWj0KnrVoSL3q4 2MTw== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=pHJuvA/c9vbb+K77sWv0mc9PZuLqqhe4ihAGwjdfCUs=; b=BXrcN+Rs+uDGDnMWahLLGdP8v5aMZeYGX4/PGi/Lq5FAg/l6LpkaubOfWEX8iLKJb2 iv2AU6K8ODn3tIdBvfPVaoqJgrMjAy3Khw3yFrimjHUm+HdfDnFQD6Ynlf3BemTjY/i/ r3arjK+h7Wa+FcImpUV4hWH/xqMB20ni5tVi0ZCUBob/bzv4SROHy8j/Bqa5W37fRLeT LZbDHxPfg2mBXPvNpQVeYAjaGzdIWQ8ORPty7+Oy/+RHtsHGgDxn5RyE/5guHlcx79hE oMOzL+2a8ysBsKNPXct+hKFM1BMwpZznefEOKpfVt56eAHnRtmgVC0oQCN9xDYu2WEqE q6Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=LHy9T6qf; 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 q1-v6si21490962pgv.652.2018.07.12.19.36.35; Thu, 12 Jul 2018 19:36:52 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=LHy9T6qf; 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 S2387914AbeGMCs0 (ORCPT + 99 others); Thu, 12 Jul 2018 22:48:26 -0400 Received: from imap.thunk.org ([74.207.234.97]:37310 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387840AbeGMCs0 (ORCPT ); Thu, 12 Jul 2018 22:48:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=pHJuvA/c9vbb+K77sWv0mc9PZuLqqhe4ihAGwjdfCUs=; b=LHy9T6qfWilYyqvt3CGl3W7un+ HoM+Yg3C/gGVbo2xG0ETzdK16OG1tvEdYEOjJFgP3WPPfsmRq8HObuJZVcsy911QxzdHPe1Cmxsoy nhepgZdBqhFw32CJOeH1LOT9IXkHCxpkQgx623/W/Js20Jx+qsSibL8TADZWSmI4nYos=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1fdnw5-0007fw-3x; Fri, 13 Jul 2018 02:35:57 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id DC0687A55D2; Thu, 12 Jul 2018 22:35:55 -0400 (EDT) Date: Thu, 12 Jul 2018 22:35:55 -0400 From: "Theodore Y. Ts'o" To: David Howells Cc: Linus Torvalds , Andrew Lutomirski , Al Viro , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] Message-ID: <20180713023555.GE28610@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , David Howells , Linus Torvalds , Andrew Lutomirski , Al Viro , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn 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> <16699.1531426991@warthog.procyon.org.uk> <18233.1531430797@warthog.procyon.org.uk> <22105.1531436081@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22105.1531436081@warthog.procyon.org.uk> User-Agent: Mutt/1.10.0 (2018-05-17) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 11:54:41PM +0100, David Howells wrote: > > Would that mean then that doing: > > mount /dev/sda3 /a > mount /dev/sda3 /b > > would then fail on the second command because /dev/sda3 is already open > exclusively? Good point. One workaround would be to require an open with O_PATH instead. - Ted