From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Emelyanov Subject: [PATCH 4/7] vfs: Add ->statfs callback for pipefs Date: Fri, 15 Jul 2011 17:47:02 +0400 Message-ID: <4E2044D6.3060205@parallels.com> References: <4E204466.8010204@parallels.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4E204466.8010204-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Nathan Lynch , Oren Laadan , Daniel Lezcano , Serge Hallyn , Tejun Heo Cc: Cyrill Gorcunov , Linux Containers , Glauber Costa List-Id: containers.vger.kernel.org This is done to make it possible to distinguish pipes from fifos when opening one via /proc//fd/ link. Signed-off-by: Pavel Emelyanov --- fs/pipe.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/pipe.c b/fs/pipe.c index da42f7d..5de15de 100644 --- a/fs/pipe.c +++ b/fs/pipe.c @@ -1254,6 +1254,7 @@ out: static const struct super_operations pipefs_ops = { .destroy_inode = free_inode_nonrcu, + .statfs = simple_statfs, }; /* -- 1.5.5.6