Re: [ANN] Squashfs 3.0 released

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17 Mar 2006, at 16:00, Jeff Garzik wrote:

Jörn Engel wrote:
On Fri, 17 March 2006 11:16:48 +0000, Phillip Lougher wrote:
The one still painfully missing is a
fixed-endianness disk format.

We had that argument last year.
Yes, I remember. What I don't remember is your opinion on the matter.
Did we reach some sort of conclusion?

Fixed endian isn't necessarily a requirement. Detectable endian is. As long as (a) the filesystem mkfs notes the endian-ness and (b) the kernel filesystem code properly handles both types of endian, life is fine.

That's what is currently done. There are two filesystem formats, big endian (donated by Squashfs magic of 'sqsh') and little endian (denoted by Squashfs magic of 'hsqs'). The kernel code detects the filesystem endianness and swaps if necessary.

For SquashFS, though, I would think that fixed endian would be easy. Since it is byte-packed, just handle endian as you unpack.

That's what is currently done. The data is swapped if necessary at unpack time. Afterwards no further swapping is performed.

Phillip
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux