Posted: Thu 17 Mar 2011, 11:16 Post subject:
kernel syscalls - How does it work?
Lets say I have a 2.6.38 kernel that is compiled with xz support. Is there a way to use syscalls to the kernel (in a C program) to decompress an xz file without having to use the userland tools? _________________ Web Programming - Pet Packaging 100 & 101
That's the transparent decompression mechanism as used by squashfs, cramfs, cloop, zisofs and now also ext4. They all depend on the kernel being able to do on-the-fly decompression of streams. And they each depend on a different program to create those filesystesms/images. From a regular C program, you'd want to use glibc calls along with small stream decompressor code. The in-kernel stuff is only useful at the filesystem level.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum