From: David Howells Subject: Re: [PATCH 24/32] vfs: syscall: Add fsopen() to prepare for superblock creation [ver #9] Date: Fri, 13 Jul 2018 16:40:28 +0100 Message-ID: <26576.1531496428@warthog.procyon.org.uk> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: In-Reply-To: Content-ID: <26575.1531496428.1@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-api@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