Re: Re: Re: [PATCH] lib : lz4 using put_unaligned_le16 instead of put_unaligned

From: Eunbong Song
Date: Mon Jul 21 2014 - 23:15:47 EST



> So it's never worked?
Yes, it's always failed to mount.
> Did you test on a little endian machine after making this change?
Unfortunately, i don't have little endian machine. So i couldn't test that.

Additionaly, when lz4 compress calls lz4_compressctx() function and uses LZ4_WRITE_LITTLEENDIAN_16() macro.
And When lz4 decompress calls lz4_uncompress_unknownoutputsize function and
uses LZ4_READ_LITTLEENDIAN_16 macro.
There is endian mismatch in big endian machine as i metioned before. when compress lz4 write big endian bytes order
and when decompress lz4 reads little endian bytes order.
So i means we should make there is no endian mismatch between compress and decompress operation.

Thanks.