Message ID | faaa6f890909261430i4567d88ay44291870efaf534d@mail.gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Eric Van Hensbergen |
Headers | show |
I thought I fixed that bug. May be forgot to submit a patch :(. Thanks, Lucho On Sat, Sep 26, 2009 at 2:30 PM, Martin Stava <martin.stava@gmail.com> wrote: > Hi guys, > >  Here is a proposed patch for bug in readdir. Listing of dirs with > many files fails without this patch. > > --- linux-2.6.31-vanilla/fs/9p/vfs_dir.c     2009-08-28 02:59:04.000000000 +0200 > +++ linux-2.6.3/fs/9p/vfs_dir.c 2009-09-26 23:20:13.000000000 +0200 > @@ -90,6 +90,7 @@ static int v9fs_dir_readdir(struct file >         if (err <= 0) >             break; > > +        i = 0; >         n = err; >         while (i < n) { >             err = p9stat_read(statbuf + i, buflen-i, &st, > > >  Regards, >  Martin > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry® Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9-12, 2009. Register now! > http://p.sf.net/sfu/devconf > _______________________________________________ > V9fs-developer mailing list > V9fs-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/v9fs-developer > ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf
--- linux-2.6.31-vanilla/fs/9p/vfs_dir.c 2009-08-28 02:59:04.000000000 +0200 +++ linux-2.6.3/fs/9p/vfs_dir.c 2009-09-26 23:20:13.000000000 +0200 @@ -90,6 +90,7 @@ static int v9fs_dir_readdir(struct file if (err <= 0) break; + i = 0; n = err; while (i < n) { err = p9stat_read(statbuf + i, buflen-i, &st,