All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Little endian Cramfs on big endian machines?
@ 2003-02-01 18:51 Jon Burgess
  2003-02-01 19:29 ` John Bradford
  0 siblings, 1 reply; 3+ messages in thread
From: Jon Burgess @ 2003-02-01 18:51 UTC (permalink / raw)
  To: linux-kernel



At the moment the cramfs code in 2.4 & 2.5 uses the native machine endianness
for the filesystem layout. I believe this behaviour has been considered a bug
and that the code changed such that the filsystem is always little endian.

There is some code in CVS at http://sourceforge.net/projects/cramfs which
implements this for 2.4. I tried it a couple of months ago and it seemed OK, but
it breaks backwards compatibility with old filesystems on big endian systems so
I suspect it would never be done in a stable kernel series like 2.4. Should
these changes be merged into 2.5?

     Jon



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] Little endian Cramfs on big endian machines?
  2003-02-01 18:51 [RFC] Little endian Cramfs on big endian machines? Jon Burgess
@ 2003-02-01 19:29 ` John Bradford
  2003-02-01 21:27   ` Jörn Engel
  0 siblings, 1 reply; 3+ messages in thread
From: John Bradford @ 2003-02-01 19:29 UTC (permalink / raw)
  To: Jon Burgess; +Cc: linux-kernel

> At the moment the cramfs code in 2.4 & 2.5 uses the native machine
> endianness for the filesystem layout. I believe this behaviour has
> been considered a bug and that the code changed such that the
> filsystem is always little endian.

Maybe the native machine endianness is used for performace reasons -
that would make sense given the typical uses of cramfs.  Also, it is a
read-only filesystem, so a userland application could flip the
endianness if a filesystem needs to be used on a non-native endianness
machine.

I'm not necessarily saying that that it's not a bug, just suggesting
an explaination.

John.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RFC] Little endian Cramfs on big endian machines?
  2003-02-01 19:29 ` John Bradford
@ 2003-02-01 21:27   ` Jörn Engel
  0 siblings, 0 replies; 3+ messages in thread
From: Jörn Engel @ 2003-02-01 21:27 UTC (permalink / raw)
  To: John Bradford; +Cc: Jon Burgess, linux-kernel

On Sat, 1 February 2003 19:29:22 +0000, John Bradford wrote:
> 
> Maybe the native machine endianness is used for performace reasons -
> that would make sense given the typical uses of cramfs.  Also, it is a
> read-only filesystem, so a userland application could flip the
> endianness if a filesystem needs to be used on a non-native endianness
> machine.

Touchy matter.
Having two possible endianness options _will_ cause problems and hours
of lost work, since 50% of all users will get it wrong at least once.
And fixing bugs between keyboard and chair is not a fun job. :)

On the other hand, most filesystem data will be read more than once,
so performance does matter, at least a little.

> I'm not necessarily saying that that it's not a bug, just suggesting
> an explaination.

It is not a bug, it is a tradeoff. Do you want to waste time accessing
the filesystem or fixing so-called bugs and educating the users?

Jörn

-- 
And spam is a useful source of entropy for /dev/random too!
-- Jasmine Strong

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-01 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-01 18:51 [RFC] Little endian Cramfs on big endian machines? Jon Burgess
2003-02-01 19:29 ` John Bradford
2003-02-01 21:27   ` Jörn Engel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.