summaryrefslogtreecommitdiffstats
path: root/lib/libdisk
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-08-05 17:44:07 +0000
committermarcel <marcel@FreeBSD.org>2004-08-05 17:44:07 +0000
commite1a649e47c2da068c7b96c177b0bd10017d21440 (patch)
tree7033ffd428a9d96b448a4df12cb3fe6e5cde26ba /lib/libdisk
parentc114a6212c8d37d1e410305436dd847a4270ca3b (diff)
downloadFreeBSD-src-e1a649e47c2da068c7b96c177b0bd10017d21440.zip
FreeBSD-src-e1a649e47c2da068c7b96c177b0bd10017d21440.tar.gz
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.
Diffstat (limited to 'lib/libdisk')
-rw-r--r--lib/libdisk/open_ia64_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/open_ia64_disk.c b/lib/libdisk/open_ia64_disk.c
index 476185d..8fc9f64 100644
--- a/lib/libdisk/open_ia64_disk.c
+++ b/lib/libdisk/open_ia64_disk.c
@@ -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();
OpenPOWER on IntegriCloud