}
static void
-check_alignment(struct partition *p, int partition)
+check_alignment(unsigned long long lba, int partition)
{
- if (!lba_is_aligned(get_start_sect(p)))
+ if (!lba_is_aligned(lba))
printf(_("Partition %i does not start on optimal I/O size boundary.\n"),
partition + 1);
}
/* type name */ (type = partition_type(p->sys_ind)) ?
type : _("Unknown"));
check_consistency(p, i);
- check_alignment(p, i);
+ check_alignment(get_partition_start(pe), i);
}
}
(unsigned long) get_nr_sects(p), p->sys_ind);
if (p->sys_ind) {
check_consistency(p, i);
- check_alignment(p, i);
+ check_alignment(get_partition_start(pe), i);
}
}
}
p = pe->part_table;
if (p->sys_ind && !IS_EXTENDED (p->sys_ind)) {
check_consistency(p, i);
- check_alignment(p, i);
+ check_alignment(get_partition_start(pe), i);
if (get_partition_start(pe) < first[i])
printf(_("Warning: bad start-of-data in "
"partition %d\n"), i + 1);