Andrey Vagin
49d063cb35
proc: show mnt_id in /proc/pid/fdinfo
...
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.
$ ls -l /proc/1/fd/1
lrwx------ 1 root root 64 Mar 19 23:54 /proc/1/fd/1 -> /dev/null
$ cat /proc/1/fdinfo/1
pos: 0
flags: 0100002
mnt_id: 16
$ cat /proc/1/mountinfo | grep ^16
16 32 0:4 / /dev rw,nosuid shared:2 - devtmpfs devtmpfs rw,size=1013356k,nr_inodes=253339,mode=755
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Acked-by: Pavel Emelyanov <xemul@parallels.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Rob Landley <rob@landley.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-04-07 16:36:04 -07:00
..
2014-04-07 16:36:01 -07:00
2013-07-03 16:08:06 -07:00
2014-01-24 15:51:02 -08:00
2013-09-11 15:59:28 -07:00
2014-03-17 12:13:09 +01:00
2014-02-26 11:16:27 +00:00
2013-11-13 12:09:14 +09:00
2014-02-10 16:01:40 -08:00
2014-02-10 16:01:40 -08:00
2014-04-07 16:36:02 -07:00
2012-11-09 18:07:11 +05:30
2011-09-27 18:08:04 +02:00
2014-04-07 16:35:57 -07:00
2014-02-07 15:40:17 -08:00
2013-05-21 10:21:57 -07:00
2014-03-20 03:50:12 +01:00
2013-10-30 01:21:24 +01:00
2012-04-03 13:09:18 +02:00
2013-07-03 16:07:42 -07:00
2013-07-25 12:37:24 +02:00
2014-03-27 16:56:23 -04:00
2014-04-05 18:46:26 -07:00
2014-04-04 09:50:07 -07:00
2014-01-22 21:21:55 -08:00
2014-03-11 06:55:49 -03:00
2013-08-20 12:47:28 +02:00
2013-04-12 14:06:16 +10:00
2014-01-07 11:54:28 +09:00
2012-11-19 14:28:24 +01:00
2014-02-10 16:01:40 -08:00
2014-04-07 16:36:04 -07:00
2012-11-14 15:07:18 -08:00
2014-02-28 15:12:08 -08:00
2011-09-27 18:08:04 +02:00
2014-02-07 09:47:02 +01:00
2014-04-01 18:27:33 +02:00
2014-04-05 18:45:11 -07:00
2014-02-15 19:46:34 +01:00
2012-03-07 16:08:24 +01:00
2013-04-02 09:39:55 -07:00
2014-02-10 16:01:40 -08:00
2012-09-20 16:49:17 -04:00
2014-03-21 13:16:58 +01:00
2014-01-24 09:40:59 +01:00
2012-03-30 16:03:15 -07:00
2014-04-03 16:21:27 -07:00
2013-10-08 23:51:50 +02:00
2013-07-04 11:40:58 -07:00
2014-01-08 15:32:51 -08:00
2014-02-10 16:01:40 -08:00
2014-02-10 16:01:40 -08:00
2014-02-10 16:01:40 -08:00
2012-05-02 00:10:49 -07:00
2013-05-28 12:02:12 +02:00
2013-11-27 11:03:38 -08:00
2014-01-29 18:56:27 -08:00
2013-03-22 12:10:42 -04:00
2014-01-03 11:22:09 -08:00
2013-01-26 22:20:06 -08:00
2014-04-02 20:53:45 -07:00
2013-01-10 01:27:46 +01:00
2013-07-09 22:09:19 +02:00
2014-02-20 14:32:34 -07:00
2014-03-08 12:39:44 +05:30
2014-04-02 16:23:38 -07:00
2013-08-27 14:44:27 +10:00
2013-09-26 09:45:40 -07:00
2012-10-02 21:14:29 +10:00
2014-03-27 14:51:47 -04:00
2013-07-25 12:34:15 +02:00
2014-02-17 14:56:10 -08:00
2014-02-10 16:01:40 -08:00
2014-02-10 16:01:40 -08:00
2014-03-15 10:19:21 -07:00
2014-03-21 13:16:58 +01:00
2014-02-10 16:01:40 -08:00
2014-02-27 08:07:39 -08:00
2014-03-30 00:51:34 +00:00
2014-04-06 09:38:07 -07:00
2013-10-16 13:35:02 -07:00
2013-09-03 09:10:24 -04:00
2014-02-10 16:01:40 -08:00
2013-08-09 10:57:06 -04:00
2014-04-03 10:26:31 -07:00
2014-03-21 13:16:58 +01:00
2014-03-14 10:37:43 -03:00
2014-04-02 16:23:38 -07:00
2014-03-21 13:16:58 +01:00
2014-02-18 08:09:40 -08:00
2014-03-31 13:33:55 +02:00
2014-03-13 15:32:42 -07:00
2014-01-15 00:25:14 +04:00
2014-04-03 16:21:27 -07:00
2014-04-02 13:15:58 -07:00
2013-12-02 11:24:18 +00:00
2013-01-08 14:14:55 -08:00
2013-07-04 11:40:58 -07:00
2011-09-27 18:08:04 +02:00
2013-08-20 12:46:52 +02:00
2013-11-27 20:34:32 -08:00
2013-12-03 10:08:57 -08:00
2014-03-19 14:56:06 -07:00
2013-07-03 22:58:20 +02:00
2013-07-03 16:08:01 -07:00
2014-01-23 16:37:01 -08:00
2013-09-04 12:59:47 +02:00
2012-03-23 16:58:37 -07:00
2014-01-20 01:11:13 +01:00
2014-04-04 09:50:07 -07:00
2011-11-09 12:10:37 +02:00
2013-09-17 15:32:37 +01:00
2013-09-17 15:32:37 +01:00
2013-10-14 15:50:53 +02:00
2013-09-10 11:36:45 +05:30
2012-03-07 16:08:24 +01:00
2013-11-14 11:04:40 -08:00
2012-11-19 14:10:53 +01:00
2014-01-23 16:36:55 -08:00
2014-02-07 08:03:07 -02:00
2013-12-19 15:09:14 +01:00
2012-05-17 19:06:13 -04:00
2013-12-02 14:48:28 +01:00
2014-03-21 13:16:58 +01:00
2013-11-13 12:09:34 +09:00
2013-12-10 23:09:08 -08:00
2013-03-10 18:16:36 +08:00
2013-08-27 10:46:02 +02:00
2012-05-25 16:18:34 +02:00
2013-01-11 11:38:03 -08:00
2013-12-02 14:48:28 +01:00
2013-04-29 15:18:50 +02:00
2013-02-27 19:10:21 -08:00
2013-08-20 12:59:18 +02:00
2013-12-02 14:48:28 +01:00
2013-05-28 12:02:11 +02:00
2011-09-27 18:08:04 +02:00
2014-04-02 14:10:21 -07:00
2014-02-17 14:56:08 -08:00
2014-03-21 13:16:58 +01:00
2014-04-03 16:21:27 -07:00
2013-12-07 21:20:11 -08:00
2012-11-28 18:36:06 +10:00
2011-12-11 10:31:23 -08:00
2013-10-09 08:19:08 +02:00
2012-02-11 15:11:28 +01:00
2013-01-31 19:20:33 -05:00
2012-05-09 13:59:09 -07:00
2012-06-28 12:03:15 +02:00
2013-12-02 14:45:19 +01:00
2013-07-13 12:09:57 -07:00
2014-04-02 16:23:38 -07:00
2013-09-06 09:36:28 -07:00
2014-04-06 09:38:07 -07:00
2012-03-30 16:03:15 -07:00
2013-11-11 12:41:33 +01:00
2012-02-28 16:05:06 +01:00
2014-03-31 14:52:43 +10:30
2012-03-30 16:03:15 -07:00
2012-09-26 19:56:15 +02:00
2014-02-05 05:48:43 +00:00
2014-01-15 13:59:50 +01:00
2014-01-23 16:36:56 -08:00
2013-10-24 10:51:33 +02:00
2012-09-06 22:16:58 -07:00
2012-10-09 16:22:40 +09:00
2012-09-18 12:53:22 +03:00
2013-12-02 14:45:19 +01:00
2013-11-30 14:08:28 +01:00
2013-01-03 15:57:16 -08:00
2013-12-02 14:45:19 +01:00
2013-07-03 16:07:54 -07:00
2012-10-01 15:27:48 +02:00
2012-12-17 17:15:23 -08:00
2013-06-19 12:58:42 +02:00
2012-06-25 12:11:58 -07:00
2013-12-02 14:45:19 +01:00
2013-06-03 14:20:18 -07:00
2011-08-13 18:34:03 -07:00
2014-04-03 16:21:27 -07:00
2013-07-25 12:34:15 +02:00
2013-10-16 13:01:44 -07:00
2013-04-04 10:24:53 -07:00
2013-12-06 16:37:43 -05:00
2013-09-05 16:36:21 -06:00
2012-01-02 13:04:55 +01:00
2013-12-03 11:15:58 -08:00
2013-08-21 10:32:09 -04:00
2013-06-26 12:10:56 +02:00
2013-11-26 11:09:08 +01:00