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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx>

---
 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
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux