From: Eric Sandeen Date: Mon, 15 Oct 2007 17:48:44 +0000 (-0500) Subject: libblkid: recognize squashfs filesystems on BE systems. X-Git-Tag: v1.40.3~14 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f493d4e0ac93a5c500a2e9360a2398a8637895b6;p=tools%2Fe2fsprogs.git libblkid: recognize squashfs filesystems on BE systems. squashfs has no uuid or labels, so all we need is the magic (for big-endian too!) Addresses-Red-Hat-Bugzilla: #305151 Signed-off-by: Eric Sandeen --- diff --git a/lib/blkid/probe.c b/lib/blkid/probe.c index 5ecebc0..a188d82 100644 --- a/lib/blkid/probe.c +++ b/lib/blkid/probe.c @@ -899,6 +899,7 @@ static struct blkid_magic type_array[] = { { "ocfs2", 4, 0, 6, "OCFSV2", probe_ocfs2 }, { "ocfs2", 8, 0, 6, "OCFSV2", probe_ocfs2 }, { "crypt_LUKS", 0, 0, 6, "LUKS\xba\xbe", probe_luks }, + { "squashfs", 0, 0, 4, "sqsh", 0 }, { "squashfs", 0, 0, 4, "hsqs", 0 }, { NULL, 0, 0, 0, NULL, NULL } };