Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading a SquashFS archive

Tags:

squashfs

(SquashFS is a compressed filesystem - http://en.wikipedia.org/wiki/SquashFS)

I'm looking for a way to read a SquashFS filesystem from a program. So far, I've know about the in-kernel drivers for it, but I'm sure that a userspace library for it must exist somewhere. Any language would be fine, but C is preferred.

Just mounting the filesystem and using it that way is technically possible, but I'd rather avoid that route because the application I'm looking at would involve working with at least a few dozen archives at any given time.

like image 443
p-static Avatar asked May 10 '10 21:05

p-static


1 Answers

I just downloaded the code tarball from squashfs.sourceforce.net and there is no kernel code in there. Only userland code in C for mksquashfs and unsquashfs.

You could probably extract code from unsquashfs.

like image 127
Nicolás Avatar answered Sep 21 '22 15:09

Nicolás