[patch 4/4] vfs: Add ->statfs callback for pipefs

Cyrill Gorcunov gorcunov at openvz.org
Sun Aug 7 14:22:22 PDT 2011


From: Pavel Emelyanov <xemul at parallels.com>

This is done to make it possible to distinguish pipes
from fifos when opening one via /proc/<pid>/fd/ link.

Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
Reviewed-by: Tejun Heo <tj at kernel.org>
Acked-by: Serge Hallyn <serge.hallyn at canonical.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 fs/pipe.c |    1 +
 1 file changed, 1 insertion(+)

Index: linux-2.6.git/fs/pipe.c
===================================================================
--- linux-2.6.git.orig/fs/pipe.c
+++ linux-2.6.git/fs/pipe.c
@@ -1254,6 +1254,7 @@ out:
 
 static const struct super_operations pipefs_ops = {
 	.destroy_inode = free_inode_nonrcu,
+	.statfs = simple_statfs,
 };
 
 /*


More information about the Containers mailing list