[LEDE-DEV] [PATCH] squashfs4: use upstream xz compression header format

Hauke Mehrtens hauke at hauke-m.de
Wed Jun 22 14:53:32 PDT 2016


On 06/22/2016 06:01 PM, Conor O'Gorman wrote:
> On 21/06/16 21:05, Hauke Mehrtens wrote:
>> In the upstream kernel and the upstream squashfs4 tools the xz
>> compression header looks the following:
>> struct disk_comp_opts {
>>          __le32 dictionary_size;
>>          __le32 flags;
>> };
>>
>> We added some other members and also moved some existing members. Place
>> the members which are already in upstream header at the same position
>> as in that kernel and add our own at the end. The kernel should not
>> have a problem when there are some additional members and just ignore
>> them.
>>
> But no endian match? __le32 -> uint32_t

Hi,

The userspace utile does not use __le32, but the values are converted to
little endian before writing them.

Hauke



More information about the Lede-dev mailing list