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.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_32 autolearn=no version=3.3.0-r574664 Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m921GEJG029201 for ; Wed, 1 Oct 2008 18:16:15 -0700 X-ASG-Debug-ID: 1222910271-0974000b0000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from sandeen.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 01799134FCE0 for ; Wed, 1 Oct 2008 18:17:51 -0700 (PDT) Received: from sandeen.net (sandeen.net [209.173.210.139]) by cuda.sgi.com with ESMTP id 6XF5xfiEoPVtdQrI for ; Wed, 01 Oct 2008 18:17:51 -0700 (PDT) Received: from liberator.sandeen.net (liberator.sandeen.net [10.0.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sandeen.net (Postfix) with ESMTP id 56766AC3593; Wed, 1 Oct 2008 20:17:51 -0500 (CDT) Message-ID: <48E4213E.9090508@sandeen.net> Date: Wed, 01 Oct 2008 20:17:50 -0500 From: Eric Sandeen User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Tobias Frost , linux-kernel@vger.kernel.org, debian-arm@lists.debian.org, xfs@oss.sgi.com X-ASG-Orig-Subj: Re: XFS filesystem corruption on the arm(el) architecture Subject: Re: XFS filesystem corruption on the arm(el) architecture References: <1222893502.5020.40.camel@moria> <20081002004556.GB30001@disturbed> In-Reply-To: <20081002004556.GB30001@disturbed> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Barracuda-Connect: sandeen.net[209.173.210.139] X-Barracuda-Start-Time: 1222910272 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.2, rules version 3.2.1.7019 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Dave Chinner wrote: > Adding xfs@oss.sgi.com to the cc list so all the XFS folk see this. > > On Wed, Oct 01, 2008 at 10:38:22PM +0200, Tobias Frost wrote: >> (Note: Please CC me, as I am NOT on the lkml!!) >> >> Some time ago, I discovered some problems with xfs. Unfortunatly, I had >> no time diving into it. However, some weeks ago some other people >> running debian on ARM machines confirmed the problem on their machines >> starting at [1], so I think it is appropitate to at least report it. >> It has also been seen on 2.6.27-rc4 [2]. >> >> summary: the xfs partition corrupts almost immediatly after creation. I >> had the impression, that the first unlink (rm) causes the corruption, >> but this might be just an impression. >> >> During the tests I made, I conserved a image of the corrupted filesystem >> which I can make available on request (it's 26 Mbyte, gzipped). >> >> Please let me know how I can assist you in finding the problem. >> >> >> [1] http://lists.debian.org/debian-arm/2008/08/msg00155.html >> [2] http://lists.debian.org/debian-arm/2008/08/msg00184.html >> >> Best regards, >> Tobias Frost >> http://blog.coldtobi.de You could try undoing this: /* ARM old ABI has some weird alignment/padding */ #if defined(__arm__) && !defined(__ARM_EABI__) #define __arch_pack __attribute__((packed)) #else #define __arch_pack #endif and just define __arch_pack to nothing unconditionally, to see if that's what broke... Or if someone can provide an xfs.ko, or point "pahole" at it yourself, and see if xfs_dir2_sf_hdr, xfs_dir2_sf_entry, and xfs_dir2_sf look more like http://sandeen.net/xfs-diskformat/xfs-oldabi-arm-pahole-structs or http://sandeen.net/xfs-diskformat/xfs-oldabi-fixed-arm-pahole-structs ? otherwise I will give this a whirl in the emulator again... Thanks, -Eric