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

Side by Side Diff: gpt.h

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 unified diff | Download patch
« no previous file with comments | « boot.c ('k') | show.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /*- 1 /*-
2 * Copyright (c) 2002 Marcel Moolenaar 2 * Copyright (c) 2002 Marcel Moolenaar
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 uint8_t part_typ; /* partition type */ 50 uint8_t part_typ; /* partition type */
51 uint8_t part_ehd; /* end head */ 51 uint8_t part_ehd; /* end head */
52 uint8_t part_esect; /* end sector */ 52 uint8_t part_esect; /* end sector */
53 uint8_t part_ecyl; /* end cylinder */ 53 uint8_t part_ecyl; /* end cylinder */
54 uint16_t part_start_lo; /* absolute starting ... */ 54 uint16_t part_start_lo; /* absolute starting ... */
55 uint16_t part_start_hi; /* ... sector number */ 55 uint16_t part_start_hi; /* ... sector number */
56 uint16_t part_size_lo; /* partition size ... */ 56 uint16_t part_size_lo; /* partition size ... */
57 uint16_t part_size_hi; /* ... in sectors */ 57 uint16_t part_size_hi; /* ... in sectors */
58 }; 58 };
59 59
60 struct mbr { 60 struct mbr {
tedbo 2010/03/12 22:32:48 The original struct represented a generic MBR with
61 » uint16_t» mbr_code[223]; 61 » uint8_t» mbr_code[424];
62 uuid_t boot_guid;
63 uint32_t disk_id;
64 uint16_t magic_number;
65 #define MBR_MAGIC 0x9A1D
62 struct mbr_part mbr_part[4]; 66 struct mbr_part mbr_part[4];
63 uint16_t mbr_sig; 67 uint16_t mbr_sig;
64 #define MBR_SIG 0xAA55 68 #define MBR_SIG 0xAA55
65 }; 69 };
66 70
67 extern char *device_name; 71 extern char *device_name;
68 extern off_t mediasz; 72 extern off_t mediasz;
69 extern u_int parts; 73 extern u_int parts;
70 extern u_int secsz; 74 extern u_int secsz;
71 extern int readonly, verbose; 75 extern int readonly, verbose;
(...skipping 12 matching lines...) Expand all
84 int cmd_boot(int, char *[]); 88 int cmd_boot(int, char *[]);
85 int cmd_create(int, char *[]); 89 int cmd_create(int, char *[]);
86 int cmd_destroy(int, char *[]); 90 int cmd_destroy(int, char *[]);
87 int cmd_label(int, char *[]); 91 int cmd_label(int, char *[]);
88 int cmd_migrate(int, char *[]); 92 int cmd_migrate(int, char *[]);
89 int cmd_recover(int, char *[]); 93 int cmd_recover(int, char *[]);
90 int cmd_remove(int, char *[]); 94 int cmd_remove(int, char *[]);
91 int cmd_show(int, char *[]); 95 int cmd_show(int, char *[]);
92 96
93 #endif /* _GPT_H_ */ 97 #endif /* _GPT_H_ */
OLDNEW
« no previous file with comments | « boot.c ('k') | show.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698