Incus import of lz4 compressed files not working

@stgraber I am trying to import containers that were exported with incus 6.9 using lz4 compression. When I try to reimport the container and I get an error saying it is using an invalid compression despite exporting with lz4. My work around was to decompress it to a tar file and then import.

Please file a bug at GitHub · Where software is built and we should be able to sort it out pretty quickly.

Basically for the compression code path, we just take whatever the user requests and check for a compressor binary with the usual interface (read from stdin, dump compressed on stdout, support for integer compress levels).

Decompression is a bit harder as we need to determine the compression algorithm based on the magic numbers in the file. I suspect we’re simply missing that magic number for lz4.