<html><body bgcolor="#FFFFFF"><div>On Nov 29, 2009, at 11:17 PM, Nitin Arora <<a href="mailto:nitin.arora.del@gmail.com">nitin.arora.del@gmail.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hello,<br><br>We are using XFS (Kernel 2.6.18) and facing a problem.<br>When any XFS partition is plugged out from a little endian machine and plugged in to a big endian machine,<br>it cannot be mounted and gives the following error.<br>
<br><p><span lang="EN-US">FAT: utf8 is not a recommended IO charset for FAT
filesystems, filesystem will be case sensitive!</span></p>
<p><span lang="EN-US">FAT: bogus number of FAT structure</span></p>
<p><span lang="EN-US">VFS: Can't find a valid FAT filesystem on dev
sda1.</span></p>
<p><span lang="EN-US">VFS: Can't find ext3 filesystem on dev
sda1.</span></p>
<p><span lang="EN-US">XFS mounting filesystem sda1</span></p>
<p><span lang="EN-US">Starting XFS recovery on filesystem: sda1 (logdev:
internal)</span></p>
<p><span style="color: red;" lang="EN-US">XFS: dirty log written in incompatible
format - can't recover</span></p>
<p><span lang="EN-US">XFS: log mount/recovery failed: error
5</span></p>
<p><span lang="EN-US">XFS: log mount failed</span></p><br></div></blockquote><div><br></div>Yep this Is expected for a dirty log, but I think a cleanly unmounted filesystem should migrate without problems; is this not the case?<div><br></div><div>So really the problem should be limited to migrating -dirty- filesystems, and the complexity of endian-swapping the journal at runtime seems overly expensive for this odd case.</div><div><br></div><div>Just unmount before migration....</div><div><br></div><div>-Eric<br><blockquote type="cite"><div><br>Mounting problem goes away after doing <i>"xfs_repair -L /dev/sdb2"<br><br></i>The problem is that big endian machine cannot recognize the journal which was written in <br>
little endian format by the little endian machine and once the journal is zerod out it can be mouted.<br><br>Now the solution to above problem seems writing journal always in big endian format.<br><br>Please suggest me, Is there any design limitation in XFS for this.<br>
Is it okay and feasible to implement it if yes then please give some pointers so that it can be implemented, under some <br>suitable compile time switch.<br><br>Thanks in advance...<br><br>Regards<br>Nitin Arora<br>
</div></blockquote></div></body></html>