lkml.org 
[lkml]   [2013]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/9] vfs: introduce clone_private_mount()
On Wed, 13 Mar 2013 15:16:28 +0100 Miklos Szeredi <miklos@szeredi.hu> wrote:

> From: Miklos Szeredi <mszeredi@suse.cz>
>
> Overlayfs needs a private clone of the mount, so create a function for
> this and export to modules.
>
> ...
>
> +struct vfsmount *clone_private_mount(struct path *path)
> +{
> + struct mount *old_mnt = real_mount(path->mnt);
> + struct mount *new_mnt;
> +
> + if (IS_MNT_UNBINDABLE(old_mnt))
> + return ERR_PTR(-EINVAL);
> +
> + down_read(&namespace_sem);
> + new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
> + up_read(&namespace_sem);
> + if (!new_mnt)
> + return ERR_PTR(-ENOMEM);
> +
> + return &new_mnt->mnt;
> +}
> +EXPORT_SYMBOL_GPL(clone_private_mount);

So this one gets the _GPL?

This is a new, exported-to-modules kernel interface function. And it
is undocumented?




\
 
 \ /
  Last update: 2013-03-14 00:41    [W:0.228 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site