1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

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
This commit is contained in:
John Baldwin 2002-12-03 16:09:55 +00:00
parent 5d93b6af54
commit 6066c0d2ee
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107554
2 changed files with 4 additions and 4 deletions

View File

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

View File

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