]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: fix sgi PT parser to report system partitions
authorKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2013 15:55:08 +0000 (16:55 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 27 Nov 2013 15:55:08 +0000 (16:55 +0100)
... to be compatible with Linux kernel.

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid/src/partitions/sgi.c

index bcde84f2a10bd27c9a0c6cfd1a91855f3a0e8b71..36dda380c8343485abfe4c5972e87ce59ebea363 100644 (file)
@@ -52,8 +52,7 @@ static int probe_sgi_pt(blkid_probe pr,
                uint32_t type = be32_to_cpu(p->type);
                blkid_partition par;
 
-               if (size == 0 || type == SGI_TYPE_ENTIRE_DISK ||
-                                type == SGI_TYPE_VOLHDR) {
+               if (!size) {
                        blkid_partlist_increment_partno(ls);
                        continue;
                }