Pavel Emelyanov
d70ef97baf
fs/pipe.c: add ->statfs callback for pipefs
...
Currently a statfs on a pipe's /proc/<pid>/fd/ link returns -ENOSYS. Wire
pipfs up so that the statfs succeeds.
This is required by checkpoint-restart in the userspace to make it
possible to distinguish pipes from fifos.
When we dump information about task's open files we use the /proc/pid/fd
directoy's symlinks and the fact that opening any of them gives us exactly
the same dentry->inode pair as the original process has. Now if a task
we're dumping has opened pipe and fifo we need to detect this and act
accordingly. Knowing that an fd with type S_ISFIFO resides on a pipefs is
the most precise way.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2011-10-31 17:30:51 -07:00
..
2011-10-24 11:13:12 -05:00
2011-03-31 11:26:23 -03:00
2011-07-20 20:47:59 -04:00
2011-07-20 20:48:03 -04:00
2011-08-08 12:02:43 -07:00
2011-08-17 13:31:24 -07:00
2011-05-28 01:02:50 -04:00
2011-10-28 10:49:34 -07:00
2011-07-20 01:44:21 -04:00
2011-10-25 16:10:17 -07:00
2011-10-28 10:49:34 -07:00
2011-09-15 13:56:28 +02:00
2011-09-27 18:08:04 +02:00
2011-07-17 23:22:02 -04:00
2011-08-22 17:41:48 -07:00
2011-03-22 17:44:17 -07:00
2011-07-25 22:49:19 -07:00
2011-08-09 23:29:01 -05:00
2011-07-20 01:44:26 -04:00
2011-10-24 17:22:29 -07:00
2011-03-15 02:21:44 -04:00
2011-08-09 10:31:03 +10:00
2011-10-25 09:45:31 +02:00
2011-10-31 17:30:46 -07:00
2011-08-18 14:16:13 -07:00
2011-05-10 10:16:21 +02:00
2011-07-21 10:59:16 -07:00
2011-09-12 11:47:10 -07:00
2011-10-28 10:49:34 -07:00
2011-07-20 20:47:59 -04:00
2011-09-15 09:03:17 -07:00
2011-07-20 20:47:59 -04:00
2011-07-20 20:47:59 -04:00
2011-07-27 22:21:58 -04:00
2011-08-25 10:50:18 -07:00
2011-07-22 19:42:12 -04:00
2011-06-28 00:06:41 +02:00
2011-07-10 22:05:08 -04:00
2011-08-09 10:31:03 +10:00
2011-10-25 09:45:31 +02:00
2011-09-14 08:21:48 -04:00
2011-10-31 17:30:47 -07:00
2011-07-20 20:47:53 -04:00
2011-07-20 20:47:59 -04:00
2011-10-28 10:49:34 -07:00
2011-03-31 11:26:23 -03:00
2011-10-24 04:24:30 -04:00
2011-07-20 20:47:59 -04:00
2011-07-26 16:49:47 -07:00
2011-07-26 16:49:47 -07:00
2011-08-09 10:31:03 +10:00
2011-07-26 13:05:28 -04:00
2011-01-07 17:50:26 +11:00
2011-07-01 16:17:13 +02:00
2011-10-31 17:30:46 -07:00
2011-07-22 16:14:39 -07:00
2011-03-10 08:52:07 +01:00
2011-09-26 19:16:46 -07:00
2011-04-14 16:06:56 -07:00
2011-10-25 12:11:02 +02:00
2011-06-27 18:00:12 -07:00
2011-09-27 18:08:04 +02:00
2011-10-25 15:10:28 +02:00
2011-05-28 01:02:50 -04:00
2011-08-19 18:58:58 +03:00
2011-07-20 01:43:07 -04:00
2011-07-20 01:44:26 -04:00
2011-10-31 17:30:46 -07:00
2011-10-31 17:30:44 -07:00
2011-07-26 12:57:09 -04:00
2011-08-09 10:31:03 +10:00
2011-07-20 20:47:59 -04:00
2010-10-14 10:57:40 -07:00
2011-07-20 01:43:10 -04:00
2011-07-20 01:43:10 -04:00
2011-05-03 10:10:51 +10:00
2011-07-20 01:43:10 -04:00
2010-08-17 18:07:43 -07:00
2011-03-17 11:11:05 +01:00
2011-05-28 14:44:46 +02:00
2011-09-10 17:20:21 +10:00
2011-10-31 17:30:49 -07:00
2011-01-13 10:45:01 -08:00
2011-08-07 22:24:41 -07:00
2011-10-31 17:30:44 -07:00
2011-08-06 22:52:40 -07:00
2011-05-31 16:33:35 +02:00
2011-10-28 14:58:58 +02:00
2011-05-25 08:39:26 -07:00
2011-02-21 15:07:04 -08:00
2011-09-15 15:08:18 +02:00
2011-10-31 17:30:45 -07:00
2011-03-23 19:47:13 -07:00
2011-04-14 16:06:56 -07:00
2011-03-21 00:16:09 -04:00
2011-07-26 16:49:47 -07:00
2011-04-28 11:28:20 -07:00
2011-04-17 10:42:01 -07:00
2011-01-16 13:47:07 -05:00
2011-07-31 22:52:08 +08:00
2011-08-01 02:10:06 -04:00
2011-10-28 14:58:55 +02:00
2011-07-20 01:44:38 -04:00
2011-03-21 00:16:08 -04:00
2010-11-15 10:23:31 +01:00
2011-10-31 17:30:45 -07:00
2010-10-27 18:03:12 -07:00
2011-07-22 19:42:11 -04:00
2011-10-25 15:42:01 +02:00
2011-10-27 08:36:51 +02:00
2011-05-25 08:39:26 -07:00
2011-05-26 10:01:43 -06:00
2011-10-28 14:59:00 +02:00
2011-10-28 13:55:08 +02:00
2010-10-15 15:53:27 +02:00
2011-10-28 14:59:00 +02:00
2011-10-31 17:30:51 -07:00
2011-01-07 17:50:33 +11:00
2011-10-28 14:58:54 +02:00
2011-10-31 17:30:44 -07:00
2010-08-09 20:45:05 -07:00
2011-03-21 00:16:08 -04:00
2010-10-25 21:26:12 -04:00
2010-10-26 10:13:10 -07:00
2011-07-25 20:57:11 -07:00
2011-08-03 14:25:24 -10:00
2011-09-27 08:12:33 -07:00
2011-03-14 09:15:28 -04:00
2011-10-31 17:30:49 -07:00
2011-07-20 20:47:59 -04:00
2011-06-14 11:46:14 +02:00
2011-03-23 19:47:13 -07:00
2011-07-18 12:29:43 -04:00