libblkid: detect squashfs
PATCH 1/1 libblkid: detect squashfs
libblkid: recognize squashfs filesystems
squashfs has no uuid or labels, so all we need is the magic.
Addresses-Red-Hat-Bugzilla: #305151
lib/blkid/probe.c +1 -0
@@ -898,6 +898,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, "hsqs", 0 }, { NULL, 0, 0, 0, NULL, NULL } };
Theodore Tso
AppliedQuoted 7 lines · Eric Sandeen
libblkid: recognize squashfs filesystems
squashfs has no uuid or labels, so all we need is the magic.
Addresses-Red-Hat-Bugzilla: #305151
Signed-off-by Eric Sandeen <[email protected]>
Thanks, applied to the maint branch.
- Ted
Quoted 6 lines · Theodore Tso
Quoted 4 lines · Eric Sandeen
libblkid: recognize squashfs filesystems
squashfs has no uuid or labels, so all we need is the magic.
Quoted 9 lines
Quoted 4 lines
Addresses-Red-Hat-Bugzilla: #305151
Signed-off-by Eric Sandeen <[email protected]>Thanks, applied to the maint branch.
- Ted
Thanks... and now for the big endian version. :( Sorry about that!
===================
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
lib/blkid/probe.c +1 -0
@@ -898,6 +898,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 } };
Theodore Tso
AppliedQuoted 1 line · Eric Sandeen
Thanks... and now for the big endian version. :( Sorry about that!
Thanks, applied into the maint branch.
- Ted