lkml.org 
[lkml]   [2005]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: reiser4 plugins
    On Tuesday July 12, ninja@slaphack.com wrote:
    > >
    > > Maybe it is worth repeating Al Viro's suggestion at this point. I
    > > don't have a reference but the idea was basically that if you open
    > > "/foo" and get filedescriptor N, then
    > > /proc/self/fds/N-meta
    >
    > How am I supposed to get there with a shell script?


    function get_meta()
    {
    var=$1
    file=$2
    meta=$3
    val=`cat /proc/self/fd/3-meta/$meta < $file`
    eval var=\$val
    }

    then
    get_meta varname /home/foo/bar username

    will read the 'username' meta-file of 'home/foo/bar' and place it in
    varname.

    Is that what you wanted?

    NeilBrown
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2005-07-13 01:45    [W:5.010 / U:0.264 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site