From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] From: Andy Lutomirski In-Reply-To: <23894.1531438559@warthog.procyon.org.uk> Date: Thu, 12 Jul 2018 16:50:13 -0700 Cc: "Theodore Y. Ts'o" , Linus Torvalds , Andrew Lutomirski , Al Viro , Linux API , linux-fsdevel , Linux Kernel Mailing List , Jann Horn Content-Transfer-Encoding: quoted-printable Message-Id: <3236C75A-5D74-4BB4-A1EC-06F6E22D810C@amacapital.net> References: <611054C7-D6E8-4C89-958E-3128C9305E1E@amacapital.net> <20180712223223.GA28610@thunk.org> <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> <23894.1531438559@warthog.procyon.org.uk> To: David Howells Sender: linux-kernel-owner@vger.kernel.org List-ID: > On Jul 12, 2018, at 4:35 PM, David Howells wrote: >=20 > Andy Lutomirski wrote: >=20 >> I tend to think that this *should* fail using the new API. The semantics= of >> the second mount request are bizarre at best. >=20 > You still have to support existing behaviour lest you break userspace. >=20 I assume the existing behavior is that a bind mount is created? If so, the n= ew mount(8) tool could do it in user code.=