From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753837AbdECR1f (ORCPT ); Wed, 3 May 2017 13:27:35 -0400 Received: from mail-qt0-f170.google.com ([209.85.216.170]:33180 "EHLO mail-qt0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751851AbdECR13 (ORCPT ); Wed, 3 May 2017 13:27:29 -0400 Message-ID: <1493832439.3180.1.camel@poochiereds.net> Subject: Re: [RFC][PATCH 0/9] VFS: Introduce mount context From: Jeff Layton To: David Howells Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Date: Wed, 03 May 2017 13:27:19 -0400 In-Reply-To: <31716.1493830216@warthog.procyon.org.uk> References: <1493829847.2699.3.camel@poochiereds.net> <149382747487.30481.15428192741961545429.stgit@warthog.procyon.org.uk> <31716.1493830216@warthog.procyon.org.uk> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2017-05-03 at 17:50 +0100, David Howells wrote: > Jeff Layton wrote: > > > > (*) Move the walk-from-root stuff that nfs has to generic code so that you > > > can do something akin to: > > > > > > mount /dev/sda1:/foo/bar /mnt > > > > > > See nfs_follow_remote_path() and mount_subtree(). This is slightly > > > tricky in NFS as we have to prevent referral loops. > > > > > > > ':' is a legitimate character in a path component. How will you > > distinguish that case? > > Fair point. Could instead do something like: > > mount /dev/sda1 /mnt -o subroot=/foo/bar > > or just limit it to the fsopen interface. > > Yeah, something like that would certainly work. I like the basic idea though of combining a mount and bind mount for local fs'. -- Jeff Layton