[PATCH] FUSE: 2/3 add offset to fuse_dirent
From: Miklos Szeredi (miklos_at_szeredi.hu)
Date: 03/31/05
- Previous message: Miklos Szeredi: "[PATCH] FUSE: 1/3 add padding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/
- Previous message: Miklos Szeredi: "[PATCH] FUSE: 1/3 add padding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- 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)