mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:42:57 +00:00
[SETUPLIB] Add two hacks in partlist.c for temporarily setting consistently the disk partition style.
Add two hacks in UpdateDiskLayout() and WritePartitions() so that the disk partition style is consistently set to a known value MBR, especially when that disk was previously new and uninitialized (RAW). A proper fix will be developed later when support for GPT is added.
This commit is contained in:
parent
05cd77028c
commit
a59cecd89d
1 changed files with 6 additions and 0 deletions
|
@ -2881,6 +2881,9 @@ UpdateDiskLayout(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HACK: See the FIXMEs in WritePartitions(): (Re)set the PartitionStyle to MBR.
|
||||||
|
DiskEntry->DiskStyle = PARTITION_STYLE_MBR;
|
||||||
|
|
||||||
DiskEntry->Dirty = TRUE;
|
DiskEntry->Dirty = TRUE;
|
||||||
|
|
||||||
#ifdef DUMP_PARTITION_TABLE
|
#ifdef DUMP_PARTITION_TABLE
|
||||||
|
@ -3926,6 +3929,9 @@ WritePartitions(
|
||||||
// DiskEntry->NoMbr was TRUE (instead of NewDisk).
|
// DiskEntry->NoMbr was TRUE (instead of NewDisk).
|
||||||
//
|
//
|
||||||
|
|
||||||
|
// HACK: Parts of FIXMEs described above: (Re)set the PartitionStyle to MBR.
|
||||||
|
DiskEntry->DiskStyle = PARTITION_STYLE_MBR;
|
||||||
|
|
||||||
/* The layout has been successfully updated, the disk is not dirty anymore */
|
/* The layout has been successfully updated, the disk is not dirty anymore */
|
||||||
DiskEntry->Dirty = FALSE;
|
DiskEntry->Dirty = FALSE;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue