Skip to contentSkip to conversation

libblkid: detect squashfs

PATCH Applied Eric Sandeen 2 participants 4 messages Sep 25, 2007 – Oct 15, 2007

lore
Share & tools
lore
#0 lore raw

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
Index: e2fsprogs-1.40.2/lib/blkid/probe.c
===================================================================
@@ -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 }
 };
 
Applied
#1 lore raw
Quoted 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

Thanks, applied to the maint branch.

- Ted

#2 lore raw
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

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
Index: e2fsprogs-1.40.2/lib/blkid/probe.c
===================================================================
@@ -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 }
 };
Applied
#3 lore raw
Quoted 1 line · Eric Sandeen

Thanks... and now for the big endian version. :( Sorry about that!

Thanks, applied into the maint branch.

- Ted