X-Spam-Checker-Version: SpamAssassin 3.3.0-rupdated (updated) on oss.sgi.com X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE autolearn=no version=3.3.0-rupdated Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id nBA8PxmN059929 for ; Thu, 10 Dec 2009 02:25:59 -0600 X-ASG-Debug-ID: 1260433594-2d6903b30000-NocioJ X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail-px0-f179.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 6E9F014F3ADE for ; Thu, 10 Dec 2009 00:26:34 -0800 (PST) Received: from mail-px0-f179.google.com (mail-px0-f179.google.com [209.85.216.179]) by cuda.sgi.com with ESMTP id t9eJOCBNPCTqZk2Y for ; Thu, 10 Dec 2009 00:26:34 -0800 (PST) Received: by pxi9 with SMTP id 9so1133070pxi.32 for ; Thu, 10 Dec 2009 00:26:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=pwwg9WOffH/4YU1I6tDiHJLLLjcy/y3llvwj2pdqze8=; b=bXuUMGfG656rHw1C3Eb9QBtLoNrP77sw+SuGPGQquv/8bCHvd+sPBkBAnkuNv+yOUC b8V/FdalhD9EDnF8/s5+guFLrQGZYT84C0ilWvziMqeKPk0CEFNqsN4bdfS9Yps4WJrf 1IyPKqPlZLPmvbKS/CaMNOGPN7DcypY7o9IrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=bWr3IHPxUVMLeQ4fJHxS9PCLB4QvRyAa5iksrwTXbvz9bGNtiwWE4mxXLCGi8sW2k/ O8YXiafiUMDbg4c/m4LnNefz3NGCLDYkocrQzO3ZOEkTYpFrnN2cueP06dTmd9ZAHTIn ZFiVTaXxZKDRDL24BPSzf3Pyn1crtDr85ajIw= MIME-Version: 1.0 Received: by 10.114.188.1 with SMTP id l1mr649640waf.193.1260433592486; Thu, 10 Dec 2009 00:26:32 -0800 (PST) In-Reply-To: <20091130064356.GD30608@discord.disaster> References: <409bd82b0911292117n5aa11961u86e787d20acbd2b3@mail.gmail.com> <20091130064356.GD30608@discord.disaster> Date: Thu, 10 Dec 2009 13:56:32 +0530 Message-ID: <409bd82b0912100026v4a268ee7g827dfa663503c8f3@mail.gmail.com> X-ASG-Orig-Subj: Re: Writing journal only in Big Endian format Subject: Re: Writing journal only in Big Endian format From: Nitin Arora To: Dave Chinner Cc: xfs@oss.sgi.com, "sandeen-xfs@sandeen.net" , "p.mironchik@velesys.com" , "hch@xfs.org" Content-Type: multipart/alternative; boundary=0016e64cb10e8b0d59047a5b907f X-Barracuda-Connect: mail-px0-f179.google.com[209.85.216.179] X-Barracuda-Start-Time: 1260433594 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=DKIM_SIGNED, DKIM_VERIFIED, HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.2.16714 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- -0.00 DKIM_VERIFIED Domain Keys Identified Mail: signature passes verification 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.00 HTML_MESSAGE BODY: HTML included in message X-Virus-Scanned: ClamAV version 0.94.2, clamav-milter version 0.94.2 on oss.sgi.com X-Virus-Status: Clean --0016e64cb10e8b0d59047a5b907f Content-Type: text/plain; charset=ISO-8859-1 Thanks Dave and Eric for your kind support. We will then see if it is worth putting in effort for these changes or not. Thanks On Mon, Nov 30, 2009 at 12:13 PM, Dave Chinner wrote: > 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 > --0016e64cb10e8b0d59047a5b907f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Dave and Eric for your kind support.
We will then see if it is wo= rth putting in effort for these changes or not.

Thanks


<= br>
On Mon, Nov 30, 2009 at 12:13 PM, Dave Ch= inner <david@fr= omorbit.com> wrote:
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<= br> 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 l= og
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

--0016e64cb10e8b0d59047a5b907f--