Don't use type unknown for partitions that we don't care about because

the chunk will never be added to the list in that case. Use type mbr
for GPT nested MBRs and use type part for any partition we don't know
or care about. Since the subtype is 0, this should not cause confusion.
This commit is contained in:
Marcel Moolenaar 2004-08-05 17:44:07 +00:00
parent 2aa65cf739
commit 7bf298bcad
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133179

View File

@ -250,7 +250,7 @@ Int_Open_Disk(const char *name, char *conftxt)
else if (uuid_equal(&uuid, &_efi, NULL))
chunk.type = efi;
else if (uuid_equal(&uuid, &_mbr, NULL))
chunk.type = unknown;
chunk.type = mbr;
else if (uuid_equal(&uuid, &_fbsd, NULL)) {
chunk.type = freebsd;
chunk.subtype = 0xa5;
@ -261,7 +261,7 @@ Int_Open_Disk(const char *name, char *conftxt)
chunk.type = part;
chunk.subtype = FS_BSDFFS;
} else
chunk.type = unknown;
chunk.type = part;
} else
abort();