]> err.no Git - linux-2.6/commit
[PATCH] fuse: transfer readdir data through device
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 9 Sep 2005 20:10:36 +0000 (13:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 21:03:47 +0000 (14:03 -0700)
commit04730fef1f9c7277e5c730b193e681ac095b0507
tree3694ea435eb38f10dadc5c8b6abd603a7e10f52e
parent413ef8cb302511d8e995e2b0e5517ee1a65b9c77
[PATCH] fuse: transfer readdir data through device

This patch removes a long lasting "hack" in FUSE, which used a separate
channel (a file descriptor refering to a disk-file) to transfer directory
contents from userspace to the kernel.

The patch adds three new operations (OPENDIR, READDIR, RELEASEDIR), which
have semantics and implementation exactly maching the respective file
operations (OPEN, READ, RELEASE).

This simplifies the directory reading code.  Also disk space is not
necessary, which can be important in embedded systems.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/dev.c
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h
include/linux/fuse.h