summaryrefslogtreecommitdiffstats
path: root/libblkid/src/superblocks/squashfs.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: avoid shadowingKarel Zak2016-03-091-14/+14
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: correct the return values in squashfs probeDavid Shea2014-06-241-3/+3
| | | | | | Returning -1 can cause squashfs v3 detection to make v4 detection fail. Signed-off-by: Karel Zak <kzak@redhat.com>
* libblkid: detect squashfs 3 vs 4Ruediger Meier2014-05-261-15/+48
| | | | | | | | | | | | | | | | | | | | | | Detect squashfs version <= 3 as squashfs3 and version >= 4 as squashfs. squashfs kernel module version 4.0 (kernel 2.6.29) is not backward compatible to open squashfs created with previous versions. Also fixed version number parsing, see $ mkdir test $ mksquashfs test test.sqsh $ blkid -p test.sqsh - test.sqsh: VERSION="1024.0" TYPE="squashfs" USAGE="filesystem" + test.sqsh: VERSION="4.0" TYPE="squashfs" USAGE="filesystem" This patch comes from openSUSE / SLE. Original author was probably Miklos Szeredi. Internal SUSE references: bnc#666893, sr226509 CC: Stanislav Brabec <sbrabec@suse.cz> CC: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* blkid: convert superblocks to new calling conventionHannes Reinecke2014-03-201-1/+1
| | | | | | | | | | | | | With the previous patch the scanning functions were modified to return a differentiated return code. To correctly abort scanning when an I/O error occurs we need to differentiate between 'error' (= -1) and 'not found' (= 1) in the probe functions. This patch updates all superblock scanning functions to the new calling convention. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* build-sys: use top-level directory for libblkid rather than shlibs/blkidKarel Zak2011-06-091-0/+68
Signed-off-by: Karel Zak <kzak@redhat.com>