diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-08-05 17:44:07 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2004-08-05 17:44:07 +0000 |
commit | 7bf298bcada534ae5403699444944355edebb1c5 (patch) | |
tree | 7033ffd428a9d96b448a4df12cb3fe6e5cde26ba /lib/libdisk | |
parent | 2aa65cf739bae6d8e2fbd167d97ef3c6f744766c (diff) | |
download | src-7bf298bcada534ae5403699444944355edebb1c5.tar.gz src-7bf298bcada534ae5403699444944355edebb1c5.zip |
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.
Notes
Notes:
svn path=/head/; revision=133179
Diffstat (limited to 'lib/libdisk')
-rw-r--r-- | lib/libdisk/open_ia64_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/open_ia64_disk.c b/lib/libdisk/open_ia64_disk.c index 476185dd508b..8fc9f64817ee 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(); |