Commit Graph

1 Commits

Author SHA1 Message Date
Yulong TANG 汤玉龙
a584e9752f Adding the zram decompression algorithm "lzo-rle"
Port the improved decompression method for "lzo" in the kernel to
support decompression of "lzorle".

Since Linux 5.1, the default compression algorithm for zram was changed
from "lzo" to "lzo-rle".  The crash-utility only supports decompression
for "lzo", when parsing vmcore files that utilize zram compression, such
as when using the gcore command to detach process core dump files,
parsing cannot be completed successfully.

before:
        crash> gcore -v 0 1
        gcore: WARNING: only the lzo compressor is supported
        gcore: WARNING: only the lzo compressor is supported
        gcore: WARNING: only the lzo compressor is supported
        gcore: WARNING: only the lzo compressor is supported
after:
        crash> gcore -v 0 1
        Saved core.1.init

Signed-off-by: yulong.tang <yulong.t...@nio.com>
Reviewed-by: Tao Liu <l...@redhat.com>
Signed-off-by: Kazuhito Hagio <k-hagio...@nec.com>
2024-05-08 10:28:49 +08:00