libblkid: fix sgi PT parser to report system partitions

... to be compatible with Linux kernel.

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-11-27 16:55:08 +01:00
parent 6d0ed4cb38
commit 4253275490
1 changed files with 1 additions and 2 deletions

View 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;
}