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:
parent
5d93b6af54
commit
6066c0d2ee
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107554
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user