Received: with ECARTIS (v1.0.0; list xfs); Wed, 19 Mar 2008 12:25:54 -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=2.1 required=5.0 tests=AWL,BAYES_50,HTML_MESSAGE autolearn=no 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 m2JJPcmJ028226 for ; Wed, 19 Mar 2008 12:25:42 -0700 X-ASG-Debug-ID: 1205954769-194700740000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from p02c11o141.mxlogic.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 9D5BE6BF709 for ; Wed, 19 Mar 2008 12:26:09 -0700 (PDT) Received: from p02c11o141.mxlogic.net (p02c11o141.mxlogic.net [208.65.144.74]) by cuda.sgi.com with ESMTP id pXnyp1ZCbfxPGTBh for ; Wed, 19 Mar 2008 12:26:09 -0700 (PDT) Received: from unknown [64.69.114.147] by p02c11o141.mxlogic.net (mxl_mta-5.4.0-3) with SMTP id 1d861e74.1911856048.3623.00-032.p02c11o141.mxlogic.net (envelope-from ); Wed, 19 Mar 2008 13:26:09 -0600 (MDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 X-ASG-Orig-Subj: Duplicate directory entries Subject: Duplicate directory entries Date: Wed, 19 Mar 2008 15:26:05 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Duplicate directory entries Thread-Index: AciJ9xNhPfe2Y96/ScGAyVknI/vBcQ== From: "Jim Paradis" To: X-Spam: [F=0.0100000000; S=0.010(2008031701)] X-MAIL-FROM: X-SOURCE-IP: [64.69.114.147] X-Barracuda-Connect: p02c11o141.mxlogic.net[208.65.144.74] X-Barracuda-Start-Time: 1205954770 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=HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.45309 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message X-Virus-Scanned: ClamAV 0.91.2/6021/Wed Feb 27 15:55:48 2008 on oss.sgi.com X-Virus-Status: Clean Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 2847 X-archive-position: 14925 X-ecartis-version: Ecartis v1.0.0 Sender: xfs-bounce@oss.sgi.com Errors-to: xfs-bounce@oss.sgi.com X-original-sender: jparadis@exagrid.com Precedence: bulk X-list: xfs We recently ran across a situation where we saw two directory entries that were exactly the same. A ls -li of the directory in question shows the following: 3758898162 -rw-r--r-- 1 root root 1592 Jan 28 02:21 4b13e98d-2165-4630-851d-c2d94149401f.i 3758898162 -rw-r--r-- 1 root root 1592 Jan 28 02:21 4b13e98d-2165-4630-851d-c2d94149401f.i 3758901942 -rw-r--r-- 1 root root 1805 Mar 16 21:43 848a74ed-ec3a-4504-a478-6b75cede7ccc.i There are only three entries in the directory. Note that the first two are identical - same name, same inode number. Note, too, that the inode has a link count of *one* despite its having two directory entries pointing at it. When I run xfs_db and examine this directory, I see that this is a short-form dir2 directory in the inode literal area, and it is the first two entries that are identical. I searched the archives and found a similar situation described in 2006, but no resolution. The xfs_db inode dump is below... any thoughts as to how this happens and is there a fix? # xfs_db -ir /dev/sdb xfs_db> inode 3758898205 xfs_db> p core.magic = 0x494e core.mode = 040700 core.version = 1 core.format = 1 (local) core.nlinkv1 = 2 core.uid = 0 core.gid = 0 core.flushiter = 165 core.atime.sec = Sun Mar 16 21:43:39 2008 core.atime.nsec = 741446434 core.mtime.sec = Sun Mar 16 21:43:40 2008 core.mtime.nsec = 511545631 core.ctime.sec = Sun Mar 16 21:43:40 2008 core.ctime.nsec = 511545631 core.size = 141 core.nblocks = 0 core.extsize = 0 core.nextents = 0 core.naextents = 0 core.forkoff = 0 core.aformat = 2 (extents) core.dmevmask = 0 core.dmstate = 0 core.newrtbm = 0 core.prealloc = 0 core.realtime = 0 core.immutable = 0 core.append = 0 core.sync = 0 core.noatime = 0 core.nodump = 0 core.rtinherit = 0 core.projinherit = 0 core.nosymlinks = 0 core.extsz = 0 core.extszinherit = 0 core.nodefrag = 0 core.filestream = 0 core.gen = 0 next_unlinked = null u.sfdir2.hdr.count = 3 u.sfdir2.hdr.i8count = 0 u.sfdir2.hdr.parent.i4 = 3221231078 u.sfdir2.list[0].namelen = 38 u.sfdir2.list[0].offset = 0x30 u.sfdir2.list[0].name = "4b13e98d-2165-4630-851d-c2d94149401f.i" u.sfdir2.list[0].inumber.i4 = 3758898162 u.sfdir2.list[1].namelen = 38 u.sfdir2.list[1].offset = 0x68 u.sfdir2.list[1].name = "4b13e98d-2165-4630-851d-c2d94149401f.i" u.sfdir2.list[1].inumber.i4 = 3758896930 u.sfdir2.list[2].namelen = 38 u.sfdir2.list[2].offset = 0xa0 u.sfdir2.list[2].name = "848a74ed-ec3a-4504-a478-6b75cede7ccc.i" u.sfdir2.list[2].inumber.i4 = 3758901942 James Paradis Platform Engineering Consultant ExaGrid Systems, Inc. 2000 West Park Drive Westborough, MA 01581 Office: 800-868-6985 Ext 305 jparadis@exagrid.com www.exagrid.com Cost-effective Disk-based Backup [[HTML alternate version deleted]]