Skip to contentSkip to conversation

vfs: Add ->statfs callback for pipefs

PATCH In review Cyrill Gorcunov 1 participant 1 message Aug 7, 2011 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 4/4 vfs: Add ->statfs callback for pipefs

From: Pavel Emelyanov <[email protected]>

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

---
 fs/pipe.c |    1 +
 1 file changed, 1 insertion(+)
fs/pipe.c +1 -0
Index: 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,
 };
 
 /*