lkml.org 
[lkml]   [2011]   [Aug]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH resend] vfs: Add ->statfs callback for pipefs
    From: Pavel Emelyanov <xemul@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@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>
    ---
    fs/pipe.c | 1 +
    1 file changed, 1 insertion(+)

    Any objections to this one? It was a part of a patchset
    but can be treated independently so I'm re-sending it alone.

    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,
    };

    /*

    \
     
     \ /
      Last update: 2011-08-24 10:11    [W:7.852 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site