diff options
author | Ruediger Meier | 2014-05-20 12:23:33 +0200 |
---|---|---|
committer | Karel Zak | 2014-05-26 12:00:44 +0200 |
commit | 11402f5e0d1bf57c40a842d85728476f89f1e315 (patch) | |
tree | 03a773b718b5c4b53aab9fb3f2a20ebc020d984a /libblkid/src/superblocks/superblocks.h | |
parent | tests: skip umount-alltargets on regular mtab (diff) | |
download | kernel-qcow2-util-linux-11402f5e0d1bf57c40a842d85728476f89f1e315.tar.gz kernel-qcow2-util-linux-11402f5e0d1bf57c40a842d85728476f89f1e315.tar.xz kernel-qcow2-util-linux-11402f5e0d1bf57c40a842d85728476f89f1e315.zip |
libblkid: detect squashfs 3 vs 4
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>
Diffstat (limited to 'libblkid/src/superblocks/superblocks.h')
-rw-r--r-- | libblkid/src/superblocks/superblocks.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libblkid/src/superblocks/superblocks.h b/libblkid/src/superblocks/superblocks.h index 2cae66a41..3bbfb9c19 100644 --- a/libblkid/src/superblocks/superblocks.h +++ b/libblkid/src/superblocks/superblocks.h @@ -57,6 +57,7 @@ extern const struct blkid_idinfo luks_idinfo; extern const struct blkid_idinfo highpoint37x_idinfo; extern const struct blkid_idinfo highpoint45x_idinfo; extern const struct blkid_idinfo squashfs_idinfo; +extern const struct blkid_idinfo squashfs3_idinfo; extern const struct blkid_idinfo netware_idinfo; extern const struct blkid_idinfo sysv_idinfo; extern const struct blkid_idinfo xenix_idinfo; |