diff options
author | Karel Zak | 2014-08-13 23:27:00 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-13 23:27:00 +0200 |
commit | 8d605c884a12f419e6491308f8be68c71776ab7e (patch) | |
tree | a279814af63a6a65699f01951c9d8470055300dc /disk-utils/fdisk.c | |
parent | libfdisk: clean up API (context.c) (diff) | |
download | kernel-qcow2-util-linux-8d605c884a12f419e6491308f8be68c71776ab7e.tar.gz kernel-qcow2-util-linux-8d605c884a12f419e6491308f8be68c71776ab7e.tar.xz kernel-qcow2-util-linux-8d605c884a12f419e6491308f8be68c71776ab7e.zip |
libfdisk: clean up API (alignment.c)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk.c')
-rw-r--r-- | disk-utils/fdisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 1af07234d..5f14a7413 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -625,9 +625,11 @@ void list_disklabel(struct fdisk_context *cxt) fputc('\n', stdout); /* print warnings */ - while (itr && fdisk_table_next_partition(tb, itr, &pa) == 0) - fdisk_warn_alignment(cxt, fdisk_partition_get_start(pa), + while (itr && fdisk_table_next_partition(tb, itr, &pa) == 0) { + if (!fdisk_lba_is_phy_aligned(cxt, fdisk_partition_get_start(pa))) + fdisk_warnx(cxt, _("Partition %zu does not start on physical sector boundary."), fdisk_partition_get_partno(pa) + 1); + } if (fdisk_table_wrong_order(tb)) fdisk_info(cxt, _("Partition table entries are not in disk order.")); |