[Top] [All Lists]

Writing journal only in Big Endian format

To: xfs@xxxxxxxxxxx, "sandeen-xfs@xxxxxxxxxxx" <sandeen-xfs@xxxxxxxxxxx>, "p.mironchik@xxxxxxxxxxx" <p.mironchik@xxxxxxxxxxx>, "hch@xxxxxxx" <hch@xxxxxxx>
Subject: Writing journal only in Big Endian format
From: Nitin Arora <nitin.arora.del@xxxxxxxxx>
Date: Mon, 30 Nov 2009 10:47:41 +0530
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=f0TxQJCcknXsN0FoILNYfxT/vf3btFTrIBXIABlvyCQ=; b=uaC03No7NIO21QP/jQut/JIZZe9EFVPMa7C6TF6qx83wB0SSe8fvq98vWNpFTEzxeC OmXGa/274W2kQTFHbtnrRNK178Jkp8stqtpY6NKzRKjDyLL4KgiqDOTQ4VfWPkQLEGes XwwD1Ik7uYTnjgPVolcbS0qajJtMMu/sbCGZY=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=k9bQO8iutSag7cB2eVmc8VgMZvTloRwXhc9EZtCLqzmd+HedCUJ9jkK+/m/xiM/d9Y oCfXg3mZoNYcg4cfH6u5YqOcFFwMOCVjbmTm7Mtx5gbwtV5Ihth78F7ZkKUkFp1LsfKr ZjNuNDnrFhERkcdnJ4tlqChFNqqEVaZiFOXeE=

We are using XFS (Kernel 2.6.18) and facing a problem.
When any XFS partition is plugged out from a little endian machine and plugged in to a big endian machine,
it cannot be mounted and gives the following error.

FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!

FAT: bogus number of FAT structure

VFS: Can't find a valid FAT filesystem on dev sda1.

VFS: Can't find ext3 filesystem on dev sda1.

XFS mounting filesystem sda1

Starting XFS recovery on filesystem: sda1 (logdev: internal)

XFS: dirty log written in incompatible format - can't recover

XFS: log mount/recovery failed: error 5

XFS: log mount failed

Mounting problem goes away after doing "xfs_repair -L /dev/sdb2"

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.

Please suggest me, Is there any design limitation in XFS for this.
Is it okay and feasible to implement it if yes then please give some pointers so that it can be implemented, under some
suitable compile time switch.

Thanks in advance...

Nitin Arora
<Prev in Thread] Current Thread [Next in Thread>