Re: [PATCH] proc: show mnt_id in fdinfo files
From: Andrew Morton
Date: Wed Mar 19 2014 - 19:22:36 EST
On Mon, 17 Mar 2014 15:50:13 +0400 Cyrill Gorcunov <gorcunov@xxxxxxxxx> wrote:
> On Mon, Mar 17, 2014 at 03:30:26PM +0400, Pavel Emelyanov wrote:
> > On 03/17/2014 02:39 PM, Andrey Vagin wrote:
> > > Currently we don't have a way how to determing from which mount point
> > > file has been opened. This information is required for proper dumping
> > > and restoring file descriptos due to presence of mount namespaces. It's
> > > possible, that two file descriptors are opened using the same paths, but
> > > one fd references mount point from one namespace while the other fd --
> > > from other namespace.
> > >
> > > Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
> > > Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
> > > Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
> > > Cc: Cyrill Gorcunov <gorcunov@xxxxxxxxxx>
> > > Cc: Pavel Emelyanov <xemul@xxxxxxxxxxxxx>
> > > Signed-off-by: Andrey Vagin <avagin@xxxxxxxxxx>
> >
> > These IDs are already shown in the /proc/$pid/mountinfo, and for some FSs
> > can be obtained via path_to_handle_at(), so this patch just makes it work
> > for any FS and speeds things up.
> >
> > Acked-by: Pavel Emelyanov <xemul@xxxxxxxxxxxxx>
>
> I think Documentation/filesystems/proc.txt should be updated on top.
Yes please.
It would be nice to see example output in the changelog as well please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/