Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4760)

Unified Diff: boot.c

Issue 866005: Describe PMBR in terms of syslinux GPT extension. (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpt.h » ('j') | gpt.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: boot.c
diff --git a/boot.c b/boot.c
index dc34961467601b4d257184ee2d7700df151773c6..3abc272016b0ccc1f79184c72bd6a34a889237e1 100644
--- a/boot.c
+++ b/boot.c
@@ -179,8 +179,9 @@ boot(int fd)
warnx("unable to find partition to make bootable.");
return;
}
- le_uuid_enc(((unsigned char*)mbr + 424),
+ le_uuid_enc(&mbr->boot_guid,
&((struct gpt_ent*)(gptboot->map_data))->ent_uuid);
+ mbr->magic_number = htole16(MBR_MAGIC);
#endif
gpt_write(fd, pmbr);
« no previous file with comments | « no previous file | gpt.h » ('j') | gpt.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698