Open flxo opened 2 years ago
So basically something like libsquashfs, which has a C API?
So basically something like libsquashfs, which has a C API?
Exactly. We tried to use squashfs-tools-ng
but experienced various problems compared to the images created with the "old" mksquashfs
. The API of squashfs-tools-ng
is super powerful but hard to use if you just want to pack a dir with some pseudo files.
A high level abstraction wrapper is implemented in squashfs-tools-ng
internally, but it was not move to libsquashfs
as there were some open questions regarding a generic enough design, and it was assumed that any filesystem manipulation code would already have it's own such layer that libsquashfs
would be integrated into, rather than the other way around.
I opened a ticket for this. Additional feedback is always welcome.
The project today is binary centric around the
mksquashfs
andunsquashfs
binaries. Calling this binaries during a build can be annoying since the binaries need to be present on the system in the correct version. Calling foreign binaries is also something that may fail easily.The idea is to split the two binaries into tree parts:
libsquashfs
: Library for creating and unpacking squashfs images with a (to be defined) C APImksquashfs
: CLI tool to create squashfs images (useslibsquashfs
)unsquashfs
: CLI tool to unpack squashfs images (useslibsquashfs
)