lkml.org 
[lkml]   [2017]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 0/9] VFS: Introduce mount context
From
Date
On Wed, 2017-05-03 at 17:50 +0100, David Howells wrote:
> Jeff Layton <jlayton@poochiereds.net> 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 <jlayton@poochiereds.net>

\
 
 \ /
  Last update: 2017-05-03 19:28    [W:1.638 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site