projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6727b1
)
9p: fix a small bug in readdir for long directories
author
Martin Stava
<martin.stava@gmail.com>
Mon, 2 Nov 2009 14:39:35 +0000
(08:39 -0600)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Mon, 2 Nov 2009 14:43:44 +0000
(08:43 -0600)
Here is a proposed patch for bug in readdir. Listing of dirs with
many files fails without this patch.
Signed-off-by: Martin Stava <martin.stava@gmail.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/vfs_dir.c
patch
|
blob
|
history
diff --git
a/fs/9p/vfs_dir.c
b/fs/9p/vfs_dir.c
index 873cd31baa47c6c77022918665a5f343d93f8425..cae53d405f215c1bf9be13b7cd3fa9ba2937828d 100644
(file)
--- a/
fs/9p/vfs_dir.c
+++ b/
fs/9p/vfs_dir.c
@@
-90,6
+90,7
@@
static int v9fs_dir_readdir(struct file *filp, void *dirent, filldir_t filldir)
if (err <= 0)
break;
+ i = 0;
n = err;
while (i < n) {
err = p9stat_read(statbuf + i, buflen-i, &st,