git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vserver 1.9.3
[linux-2.6.git]
/
fs
/
partitions
/
efi.h
diff --git
a/fs/partitions/efi.h
b/fs/partitions/efi.h
index
9b2670e
..
c44fb05
100644
(file)
--- a/
fs/partitions/efi.h
+++ b/
fs/partitions/efi.h
@@
-66,20
+66,20
@@
0xa2, 0x3c, 0x23, 0x8f, 0x2a, 0x3d, 0xf9, 0x28)
typedef struct _gpt_header {
0xa2, 0x3c, 0x23, 0x8f, 0x2a, 0x3d, 0xf9, 0x28)
typedef struct _gpt_header {
-
u
64 signature;
-
u
32 revision;
-
u
32 header_size;
-
u
32 header_crc32;
-
u
32 reserved1;
-
u
64 my_lba;
-
u
64 alternate_lba;
-
u
64 first_usable_lba;
-
u
64 last_usable_lba;
+
__le
64 signature;
+
__le
32 revision;
+
__le
32 header_size;
+
__le
32 header_crc32;
+
__le
32 reserved1;
+
__le
64 my_lba;
+
__le
64 alternate_lba;
+
__le
64 first_usable_lba;
+
__le
64 last_usable_lba;
efi_guid_t disk_guid;
efi_guid_t disk_guid;
-
u
64 partition_entry_lba;
-
u
32 num_partition_entries;
-
u
32 sizeof_partition_entry;
-
u
32 partition_entry_array_crc32;
+
__le
64 partition_entry_lba;
+
__le
32 num_partition_entries;
+
__le
32 sizeof_partition_entry;
+
__le
32 partition_entry_array_crc32;
u8 reserved2[GPT_BLOCK_SIZE - 92];
} __attribute__ ((packed)) gpt_header;
u8 reserved2[GPT_BLOCK_SIZE - 92];
} __attribute__ ((packed)) gpt_header;
@@
-92,18
+92,18
@@
typedef struct _gpt_entry_attributes {
typedef struct _gpt_entry {
efi_guid_t partition_type_guid;
efi_guid_t unique_partition_guid;
typedef struct _gpt_entry {
efi_guid_t partition_type_guid;
efi_guid_t unique_partition_guid;
-
u
64 starting_lba;
-
u
64 ending_lba;
+
__le
64 starting_lba;
+
__le
64 ending_lba;
gpt_entry_attributes attributes;
efi_char16_t partition_name[72 / sizeof (efi_char16_t)];
} __attribute__ ((packed)) gpt_entry;
typedef struct _legacy_mbr {
u8 boot_code[440];
gpt_entry_attributes attributes;
efi_char16_t partition_name[72 / sizeof (efi_char16_t)];
} __attribute__ ((packed)) gpt_entry;
typedef struct _legacy_mbr {
u8 boot_code[440];
-
u
32 unique_mbr_signature;
-
u
16 unknown;
+
__le
32 unique_mbr_signature;
+
__le
16 unknown;
struct partition partition_record[4];
struct partition partition_record[4];
-
u
16 signature;
+
__le
16 signature;
} __attribute__ ((packed)) legacy_mbr;
/* Functions */
} __attribute__ ((packed)) legacy_mbr;
/* Functions */