X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.0-rupdated Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id nAU6iBux202801 for ; Mon, 30 Nov 2009 00:44:11 -0600 X-ASG-Debug-ID: 1259563478-0a8400300000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.internode.on.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 860191D9F09F for ; Sun, 29 Nov 2009 22:44:39 -0800 (PST) Received: from mail.internode.on.net (bld-mail19.adl2.internode.on.net [150.101.137.104]) by cuda.sgi.com with ESMTP id 9WGFj2DT6YzjbtpH for ; Sun, 29 Nov 2009 22:44:39 -0800 (PST) Received: from discord (unverified [121.44.201.81]) by mail.internode.on.net (SurgeMail 3.8f2) with ESMTP id 9136073-1927428 for multiple; Mon, 30 Nov 2009 17:13:58 +1030 (CDT) Received: from dave by discord with local (Exim 4.69) (envelope-from ) id 1NEzzI-0005t8-4c; Mon, 30 Nov 2009 17:43:56 +1100 Date: Mon, 30 Nov 2009 17:43:56 +1100 From: Dave Chinner To: Nitin Arora Cc: xfs@oss.sgi.com, "sandeen-xfs@sandeen.net" , "p.mironchik@velesys.com" , "hch@xfs.org" X-ASG-Orig-Subj: Re: Writing journal only in Big Endian format Subject: Re: Writing journal only in Big Endian format Message-ID: <20091130064356.GD30608@discord.disaster> References: <409bd82b0911292117n5aa11961u86e787d20acbd2b3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <409bd82b0911292117n5aa11961u86e787d20acbd2b3@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Barracuda-Connect: bld-mail19.adl2.internode.on.net[150.101.137.104] X-Barracuda-Start-Time: 1259563480 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.2.15937 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean On Mon, Nov 30, 2009 at 10:47:41AM +0530, Nitin Arora wrote: > The problem is that big endian machine cannot recognize the > journal which was written in little endian format by the little > endian machine and once the journal is zerod out it can be > mouted. > > Now the solution to above problem seems writing journal always in > big endian format. Or you could just replay the log on the little endian machine and do a clean unmount, then you should be able to move it to the big endian machine without losing anything. > Please suggest me, Is there any design limitation in XFS for this. No design limitation, just a *lot* of work to change. If you don't have a few months handy to work on this, I'd just use the above method.... > Is it okay and feasible to implement it if yes then please give > some pointers so that it can be implemented, All log headers, tails and sector fills need to be converted, every log item format routine needs a big-endian version, log recovery needs to be able to read both host-format and big-endian logs, all the userspace tools need to learn about different log formats, QA tests need to be written, etc. > under some suitable > compile time switch. It could be done with a superblock feature bit, so the same kernel could support both big-endian logs and host format. Cheers, Dave. -- Dave Chinner david@fromorbit.com