31 |
uint8_t end_cyl; |
uint8_t end_cyl; |
32 |
uint32_t start_sect; |
uint32_t start_sect; |
33 |
uint32_t nr_sects; |
uint32_t nr_sects; |
34 |
} __attribute__((packed)); |
} PACKED; |
35 |
|
|
36 |
#define MSDOS_PARTTABLE_OFFSET 0x1be |
#define MSDOS_PARTTABLE_OFFSET 0x1be |
37 |
#define MSDOS_SIG_OFF 0x1fe |
#define MSDOS_SIG_OFF 0x1fe |
47 |
#define is_raid(type) \ |
#define is_raid(type) \ |
48 |
(type == LINUX_RAID_PARTITION) |
(type == LINUX_RAID_PARTITION) |
49 |
|
|
50 |
int volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t off) |
int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id, uint64_t off) |
51 |
{ |
{ |
52 |
const uint8_t *buf; |
const uint8_t *buf; |
53 |
int i; |
int i; |