struct dos_partition {
unsigned char boot_ind; /* 0x80 - active */
unsigned char bh, bs, bc; /* begin CHS */
- unsigned char sys_type;
+ unsigned char sys_ind;
unsigned char eh, es, ec; /* end CHS */
unsigned char start_sect[4];
unsigned char nr_sects[4];
static inline int is_extended(struct dos_partition *p)
{
- return (p->sys_type == MBR_DOS_EXTENDED_PARTITION ||
- p->sys_type == MBR_W95_EXTENDED_PARTITION ||
- p->sys_type == MBR_LINUX_EXTENDED_PARTITION);
+ return (p->sys_ind == MBR_DOS_EXTENDED_PARTITION ||
+ p->sys_ind == MBR_W95_EXTENDED_PARTITION ||
+ p->sys_ind == MBR_LINUX_EXTENDED_PARTITION);
}
static int parse_dos_extended(blkid_probe pr, blkid_parttable tab,
if (!par)
goto err;
- blkid_partition_set_type(par, p->sys_type);
+ blkid_partition_set_type(par, p->sys_ind);
blkid_partition_set_flags(par, p->boot_ind);
blkid_partition_gen_uuid(par);
ct_nodata = 0;
* GPT uses valid MBR
*/
for (p = p0, i = 0; i < 4; i++, p++) {
- if (p->sys_type == MBR_GPT_PARTITION) {
+ if (p->sys_ind == MBR_GPT_PARTITION) {
DBG(LOWPROBE, blkid_debug("probably GPT -- ignore"));
goto nothing;
}
if (!par)
goto err;
- blkid_partition_set_type(par, p->sys_type);
+ blkid_partition_set_type(par, p->sys_ind);
blkid_partition_set_flags(par, p->boot_ind);
blkid_partition_gen_uuid(par);
}
continue;
for (n = 0; n < ARRAY_SIZE(dos_nested); n++) {
- if (dos_nested[n].type != p->sys_type)
+ if (dos_nested[n].type != p->sys_ind)
continue;
if (blkid_partitions_do_subprobe(pr,
uint32_t start, size;
blkid_partition par;
- if (p->sys_type != MBR_MINIX_PARTITION)
+ if (p->sys_ind != MBR_MINIX_PARTITION)
continue;
start = dos_partition_start(p);
if (!par)
goto err;
- blkid_partition_set_type(par, p->sys_type);
+ blkid_partition_set_type(par, p->sys_ind);
blkid_partition_set_flags(par, p->boot_ind);
}