From patchwork Sat Sep 26 21:30:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Stava X-Patchwork-Id: 50272 X-Patchwork-Delegate: ericvh@gmail.com Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n8QLVMEs013968 for ; Sat, 26 Sep 2009 21:31:22 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-1.v29.ch3.sourceforge.com) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Mrer9-00025F-Un; Sat, 26 Sep 2009 21:31:03 +0000 Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123] helo=mx.sourceforge.net) by 235xhf1.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1Mrer9-00024z-4n for v9fs-developer@lists.sourceforge.net; Sat, 26 Sep 2009 21:31:03 +0000 Received-SPF: pass (3b2kzd1.ch3.sourceforge.com: domain of gmail.com designates 209.85.219.207 as permitted sender) client-ip=209.85.219.207; envelope-from=martin.stava@gmail.com; helo=mail-ew0-f207.google.com; Received: from mail-ew0-f207.google.com ([209.85.219.207]) by 3b2kzd1.ch3.sourceforge.com with esmtp (Exim 4.69) id 1Mrer0-0006Fe-Tx for v9fs-developer@lists.sourceforge.net; Sat, 26 Sep 2009 21:31:03 +0000 Received: by ewy3 with SMTP id 3so3318445ewy.33 for ; Sat, 26 Sep 2009 14:30:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.211.146.18 with SMTP id y18mr1298499ebn.55.1254000648042; Sat, 26 Sep 2009 14:30:48 -0700 (PDT) Date: Sat, 26 Sep 2009 23:30:48 +0200 Message-ID: From: Martin Stava To: V9FS Developers X-Spam-Score: -1.5 (-) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_PASS SPF: sender matches SPF record -0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature X-Headers-End: 1Mrer0-0006Fe-Tx Subject: [V9fs-developer] Small patch X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: v9fs-developer-bounces@lists.sourceforge.net Hi guys, Here is a proposed patch for bug in readdir. Listing of dirs with many files fails without this patch. 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 --- 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,