Received: with ECARTIS (v1.0.0; list xfs); Sat, 22 Mar 2008 18:03:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.0-r574664 (2007-09-11) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-r574664 Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m2N13Q2x009810 for ; Sat, 22 Mar 2008 18:03:27 -0700 X-ASG-Debug-ID: 1206234240-7fde035c0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from wa-out-1112.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 799F96D66F0 for ; Sat, 22 Mar 2008 18:04:00 -0700 (PDT) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by cuda.sgi.com with ESMTP id gfkv3MFTfAMbgvE6 for ; Sat, 22 Mar 2008 18:04:00 -0700 (PDT) Received: by wa-out-1112.google.com with SMTP id k22so2598720waf.18 for ; Sat, 22 Mar 2008 18:03:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; bh=kiaNwe/B1/oZQpPPGRsyxGbnQQeNnErkWrsA5Bkx27I=; b=V/8riQ14s7LyfobnS6CVpRnMWwkEqTJNpEeElTNInwM+shdz1loBbU2jX2uzd50OUrTW/PWNfMDaXtPC5Tl/HUMBIl1a4N7yrDhQ8CTUk9RpCOGYStvQ/SWqEqfr2FjYG/NkgXsac3RWbSn3WYyF77iMH725Dxbxe4fvhvD/16U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:cc:subject:content-type; b=UoxM/X7V3pr/+3jptWVbkhbJmNcgKQ/y5TH3fi0oMZeEbwbQL7nRD8AuZJaYOUHi52EuE/5eBb83v9McAtx7NeG98fH2qBwx54SH4SZiMTe3NON9K7kVuoDWD2tLsBDWQX6q2NK7+uI3pfDIfizfY/lsmzKfhgJPgC7vsVAiZLU= Received: by 10.114.136.1 with SMTP id j1mr8901470wad.85.1206234239859; Sat, 22 Mar 2008 18:03:59 -0700 (PDT) Received: from ?192.168.1.2? ( [118.0.185.164]) by mx.google.com with ESMTPS id n22sm10484166pof.1.2008.03.22.18.03.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 22 Mar 2008 18:03:59 -0700 (PDT) Message-ID: <47E5AC7D.4080708@gmail.com> Date: Sun, 23 Mar 2008 09:03:57 +0800 From: Kevin Xu User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: xfscn@googlegroups.com CC: xfs@oss.sgi.com X-ASG-Orig-Subj: [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int Subject: [PATCH]fix the algorithm for addname in xfs_da_node_lookup_int Content-Type: multipart/mixed; boundary="------------040805070705080301070307" X-Barracuda-Connect: wa-out-1112.google.com[209.85.146.183] X-Barracuda-Start-Time: 1206234240 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.45618 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV 0.91.2/6021/Wed Feb 27 15:55:48 2008 on oss.sgi.com X-Virus-Status: Clean X-archive-position: 14986 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: cgxu.gg@gmail.com Precedence: bulk X-list: xfs This is a multi-part message in MIME format. --------------040805070705080301070307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit fix the algorithm for addname in xfs_da_node_lookup_int --------------040805070705080301070307 Content-Type: text/x-patch; name="usig-xfs-fix-080323.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="usig-xfs-fix-080323.patch" --- linux-2.6-xfs/fs/xfs/xfs_da_btree.c 2007-09-21 14:14:35.000000000 +0800 +++ linux-xfs-usig/fs/xfs/xfs_da_btree.c 2008-03-23 08:19:13.583751436 +0800 @@ -1161,7 +1161,7 @@ xfs_da_node_lookup_int(xfs_da_state_t *s ASSERT(0); return XFS_ERROR(EFSCORRUPTED); } - if (((retval == ENOENT) || (retval == ENOATTR)) && + if ((((retval == ENOENT) && (state->extrablk.index == -1)) || (retval == ENOATTR)) && (blk->hashval == args->hashval)) { error = xfs_da_path_shift(state, &state->path, 1, 1, &retval); --------------040805070705080301070307--