On 01/27/2013 02:40 PM, Jérôme Duval wrote:
2013/1/27 <axeld@xxxxxxxxxxxxxxxx>:+ if (fStatus != B_OK) { + // Recreate primary header from the backup + fHeader = fBackupHeader; + fHeader.SetAbsoluteBlock(EFI_HEADER_LOCATION); + fHeader.SetEntriesBlock(EFI_PARTITION_ENTRIES_BLOCK); + } else if (status != B_OK) { + // Recreate backup header from primary + _SetBackupHeaderFromPrimary(lastBlock);What about a read only disk?
The header is only recreated in memory - so that both are written correctly should it be written at all.
Bye, Axel.