summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-12-03 16:09:55 +0000
committerjhb <jhb@FreeBSD.org>2002-12-03 16:09:55 +0000
commitffe0d359952e4d4934c0ae528d3d8bb0acf6ce84 (patch)
tree681ea7729d482c816f10439d41499e5ab89b8d95 /usr.sbin
parent81fe1696308c5629262bfd7c5ed69a6d7c0343d8 (diff)
downloadFreeBSD-src-ffe0d359952e4d4934c0ae528d3d8bb0acf6ce84.zip
FreeBSD-src-ffe0d359952e4d4934c0ae528d3d8bb0acf6ce84.tar.gz
Fix a bug in the fdisk editor that partially masked the chunk deletion
bug fixed yesterday. New slices created in the fdisk editor and slices whose sub-type is changed are of type 'mbr' if their sub-type is not a magic type, not type 'unknown'. Approved by: re
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sade/disks.c4
-rw-r--r--usr.sbin/sysinstall/disks.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/sade/disks.c b/usr.sbin/sade/disks.c
index bc6c224..c240a09 100644
--- a/usr.sbin/sade/disks.c
+++ b/usr.sbin/sade/disks.c
@@ -450,7 +450,7 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
- partitiontype = unknown;
+ partitiontype = mbr;
Create_Chunk(d, chunk_info[current_chunk]->offset, size, partitiontype, subtype,
(chunk_info[current_chunk]->flags & CHUNK_ALIGN), name);
variable_set2(DISK_PARTITIONED, "yes", 0);
@@ -509,7 +509,7 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
- partitiontype = unknown;
+ partitiontype = mbr;
chunk_info[current_chunk]->type = partitiontype;
chunk_info[current_chunk]->subtype = subtype;
}
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index bc6c224..c240a09 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -450,7 +450,7 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
- partitiontype = unknown;
+ partitiontype = mbr;
Create_Chunk(d, chunk_info[current_chunk]->offset, size, partitiontype, subtype,
(chunk_info[current_chunk]->flags & CHUNK_ALIGN), name);
variable_set2(DISK_PARTITIONED, "yes", 0);
@@ -509,7 +509,7 @@ diskPartition(Device *dev)
else if (subtype == SUBTYPE_EFI)
partitiontype = efi;
else
- partitiontype = unknown;
+ partitiontype = mbr;
chunk_info[current_chunk]->type = partitiontype;
chunk_info[current_chunk]->subtype = subtype;
}
OpenPOWER on IntegriCloud