Re: cramfs in big endian

2007-11-11 Thread Andi Drebes
> What about simply deep-sixing cramfs and replacing it with squashfs or > something else? I think this is the long term solution. Cramfs isn't a very beautiful filesystem. It's a good candidate for removal. However, there are still some distributions that use cramfs for initrds. So removing it

Re: cramfs in big endian

2007-11-10 Thread H. Peter Anvin
Andi Drebes wrote: Indeed, this is the problem. The readme file fs/cramfs/README states: "One part of that is addressing endianness. The two options here are `always use little-endian' (like ext2fs) or `writer chooses endianness; kernel adapts at runtime'. Little-endian wins because of code s

Re: cramfs in big endian

2007-11-10 Thread Andi Drebes
> > Endian-independent code is slower than wrong-endian code, because of the > > necessary conditionals. Thus, you DO NOT WANT this(*). > > I'd prefer not to have it either. But a someone (pinhead) was smart > enough not to define an endianess for cramfs from the beginning we're > stuck with it

Re: cramfs in big endian

2007-11-10 Thread H. Peter Anvin
Christoph Hellwig wrote: On Fri, Nov 09, 2007 at 05:03:01PM -0800, H. Peter Anvin wrote: Endian-independent code is slower than wrong-endian code, because of the necessary conditionals. Thus, you DO NOT WANT this(*). I'd prefer not to have it either. But a someone (pinhead) was smart enough

Re: cramfs in big endian

2007-11-10 Thread Christoph Hellwig
On Fri, Nov 09, 2007 at 05:03:01PM -0800, H. Peter Anvin wrote: > Endian-independent code is slower than wrong-endian code, because of the > necessary conditionals. Thus, you DO NOT WANT this(*). I'd prefer not to have it either. But a someone (pinhead) was smart enough not to define an endiane

Re: cramfs in big endian

2007-11-09 Thread H. Peter Anvin
Christoph Hellwig wrote: On Wed, Nov 07, 2007 at 09:51:48PM +0100, Andi Drebes wrote: Hi! I would suggest you to use squashfs instead of cramfs. First, it's newer, it's better, it's actively developed, it doesn't have any limits like the bad cramfs. I'm developing a new linux based firmware f

Re: cramfs in big endian

2007-11-08 Thread Andi Drebes
Hi! > Making cramfs endianess-independent shouldn't be much work. Take a look > at the helpers in fs/ufs/swab.h and use them for every ondisk access in > cramfs. Drop me a not if you need some help. I already started working on this feature some time ago. I think I am able to mount cramfs image

Re: cramfs in big endian

2007-11-07 Thread Christoph Hellwig
On Wed, Nov 07, 2007 at 09:51:48PM +0100, Andi Drebes wrote: > Hi! > > > I would suggest you to use squashfs instead of cramfs. > > First, it's newer, it's better, it's actively developed, it doesn't have any > > limits like the bad cramfs. > I'm developing a new linux based firmware for my route

Re: cramfs in big endian

2007-11-07 Thread Andi Drebes
Hi! > I would suggest you to use squashfs instead of cramfs. > First, it's newer, it's better, it's actively developed, it doesn't have any > limits like the bad cramfs. I'm developing a new linux based firmware for my router which uses cramfs. Switching to squashfs still needs some time. Meanwh

Re: cramfs in big endian

2007-11-07 Thread Tomas M
> I'm currently trying to enable the cramfs to mount filesystems with a > different endianness. I would suggest you to use squashfs instead of cramfs. First, it's newer, it's better, it's actively developed, it doesn't have any limits like the bad cramfs. Moreover, it currently supports both e

cramfs in big endian

2007-11-06 Thread Andi Drebes
Hi! I'm currently trying to enable the cramfs to mount filesystems with a different endianness. All I have is an intel compatible machine that produces cramfs images in little endian format. I found a modified version of mkcramfs that is able to produce images in big endian mode. Unfortunately i