#20 unsquashfs: add support for LZMA magics

open
nobody
None
5
2012-09-19
2012-09-19
Antonio Ospite
No

Some vendor (e.g. Thomson/Technicolor) use a different super block magic
to indicate LZMA compression:

qshs (0x71736873) - LZMA compression
shsq (0x73687371) - LZMA compression, SWAPPED fields

Add support for detecting this and enable extraction for filesystems
from those firmwares.

If the patch is OK, it can be applied with git-am.

Thanks,
Antonio

Discussion

  • Antonio Ospite
    Antonio Ospite
    2013-03-19

    Ping.

    In a router using such filesystems with swapped bytes I can see this message in the kernel logs:

    squashfs: version 4.0 (2009/01/31) Phillip Lougher
    squashfs: version 4.0 with LZMA457 ported by BRCM

    I don't know if this info can be useful to choose a bettere name for the feature.