]> git.baikalelectronics.ru Git - kernel.git/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)
commit8fedce1c06797dd075e21aca3b5b19a5e40f3bf0
tree3694ea435eb38f10dadc5c8b6abd603a7e10f52e
parentd5734b5eca2c0e858ffc77f0363f28d3ad40aed7
[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