original_kernel/fs/9p
Eric Van Hensbergen 3e2796a90c 9p: fix readdir corner cases
The patch below also addresses a couple of other corner cases in readdir
seen with a large (e.g. 64k) msize.  I'm not sure what people think of
my co-opting of fid->aux here.  I'd be happy to rework if there's a better
way.

When the size of the user supplied buffer passed to readdir is smaller
than the data returned in one go by the 9P read request, v9fs_dir_readdir()
currently discards extra data so that, on the next call, a 9P read
request will be issued with offset < previous offset + bytes returned,
which voilates the constraint described in paragraph 3 of read(5) description.
This patch preseves the leftover data in fid->aux for use in the next call.

Signed-off-by: Jim Garlick <garlick@llnl.gov>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
2009-11-02 08:43:45 -06:00
..
Kconfig 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
Makefile 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
cache.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
cache.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
fid.c
fid.h
v9fs.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
v9fs.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
v9fs_vfs.h 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_addr.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_dentry.c
vfs_dir.c 9p: fix readdir corner cases 2009-11-02 08:43:45 -06:00
vfs_file.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00
vfs_inode.c 9p: fix readlink 2009-11-02 08:43:45 -06:00
vfs_super.c 9p: Add fscache support to 9p 2009-09-23 13:03:46 -05:00