public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Nitin Arora <nitin.arora.del@gmail.com>
Cc: "sandeen-xfs@sandeen.net" <sandeen-xfs@sandeen.net>,
	"p.mironchik@velesys.com" <p.mironchik@velesys.com>,
	"hch@xfs.org" <hch@xfs.org>,
	xfs@oss.sgi.com
Subject: Re: Writing journal only in Big Endian format
Date: Mon, 30 Nov 2009 17:43:56 +1100	[thread overview]
Message-ID: <20091130064356.GD30608@discord.disaster> (raw)
In-Reply-To: <409bd82b0911292117n5aa11961u86e787d20acbd2b3@mail.gmail.com>

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

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2009-11-30  6:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30  5:17 Writing journal only in Big Endian format Nitin Arora
2009-11-30  5:58 ` Eric Sandeen
2009-11-30  6:43 ` Dave Chinner [this message]
2009-12-10  8:26   ` Nitin Arora

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091130064356.GD30608@discord.disaster \
    --to=david@fromorbit.com \
    --cc=hch@xfs.org \
    --cc=nitin.arora.del@gmail.com \
    --cc=p.mironchik@velesys.com \
    --cc=sandeen-xfs@sandeen.net \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox