[PATCH] FUSE: 2/3 add offset to fuse_dirent

From: Miklos Szeredi (miklos_at_szeredi.hu)
Date: 03/31/05

  • Next message: Borislav Petkov: "Re: 2.6.12-rc1-mm3"
    To: akpm@osdl.org
    Date:	Thu, 31 Mar 2005 22:59:13 +0200
    
    

    This patch adds an offset field to fuse_dirent structure. This will
    give userspace filesystems more flexibility in implementing a readdir
    method.

    Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>

    diff -rup linux-2.6.12-rc1-mm4/fs/fuse/dir.c linux-fuse/fs/fuse/dir.c
    --- linux-2.6.12-rc1-mm4/fs/fuse/dir.c 2005-03-31 21:43:42.000000000 +0200
    +++ linux-fuse/fs/fuse/dir.c 2005-03-31 21:49:39.000000000 +0200
    @@ -483,7 +483,7 @@ static int parse_dirfile(char *buf, size
                             break;
     
                     over = filldir(dstbuf, dirent->name, dirent->namelen,
    - file->f_pos, dirent->ino, dirent->type);
    + dirent->off, dirent->ino, dirent->type);
                     if (over)
                             break;
     
    diff -rup linux-2.6.12-rc1-mm4/include/linux/fuse.h linux-fuse/include/linux/fuse.h
    --- linux-2.6.12-rc1-mm4/include/linux/fuse.h 2005-03-31 21:49:56.000000000 +0200
    +++ linux-fuse/include/linux/fuse.h 2005-03-31 21:49:39.000000000 +0200
    @@ -237,6 +237,7 @@ struct fuse_out_header {
     
     struct fuse_dirent {
             __u64 ino;
    + __u64 off;
             __u32 namelen;
             __u32 type;
             char name[0];

    -
    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/


  • Next message: Borislav Petkov: "Re: 2.6.12-rc1-mm3"

    Relevant Pages

    • Re: how to run debsums for ps and readline
      ... chkrootkit is complaining about processes hidden from ps and readdir. ... like to run debsums on them to test the integrity of ps and readdir. ... However, 'debsums ps' doesn't work. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: Problem with my code
      ... while(my $obj = readdir DIR) { ... To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx ... For additional commands, e-mail: beginners-help@xxxxxxxx ...
      (perl.beginners)
    • Re: JFS default behavior (was: UTF-8 in file systems? xfs/extfs/etc.)
      ... > and doing the readdir(). ... How does the shell do 'echo foo*'? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Iceweasel 3.5
      ... The power and flexibility is intoxicating. ... A sense of empowerment is ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: To synchronize system time witn NTP-server with no winter time shift whole year - how to
      ... The OpenVMS epoch gives much more flexibility... ... "More useful" is a better phrase, since is able to represent, and thus do arithmetic on 110 more years, in 100ns ticks instead of 1s ticks, than the Unix epoch. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)