From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbdECQu1 convert rfc822-to-8bit (ORCPT ); Wed, 3 May 2017 12:50:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57590 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287AbdECQuT (ORCPT ); Wed, 3 May 2017 12:50:19 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6B56E8124D Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx01.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dhowells@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6B56E8124D 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: <1493829847.2699.3.camel@poochiereds.net> References: <1493829847.2699.3.camel@poochiereds.net> <149382747487.30481.15428192741961545429.stgit@warthog.procyon.org.uk> To: Jeff Layton Cc: dhowells@redhat.com, viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com Subject: Re: [RFC][PATCH 0/9] VFS: Introduce mount context MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31715.1493830216.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Wed, 03 May 2017 17:50:16 +0100 Message-ID: <31716.1493830216@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Wed, 03 May 2017 16:50:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. David