diff options
author | Karel Zak | 2014-04-16 12:51:08 +0200 |
---|---|---|
committer | Karel Zak | 2014-04-16 12:51:08 +0200 |
commit | 8b60872ec01c185b003826adabe3aa4f52c44ad0 (patch) | |
tree | 5dd953e4d49d19f91fbd77425b0921ec3714ecd4 /disk-utils | |
parent | libsmartcols: don't colorize tree ascii art (diff) | |
download | kernel-qcow2-util-linux-8b60872ec01c185b003826adabe3aa4f52c44ad0.tar.gz kernel-qcow2-util-linux-8b60872ec01c185b003826adabe3aa4f52c44ad0.tar.xz kernel-qcow2-util-linux-8b60872ec01c185b003826adabe3aa4f52c44ad0.zip |
libfdisk: add generic function to check partitions order
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/fdisk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/disk-utils/fdisk.c b/disk-utils/fdisk.c index 2283c4142..8762a7ac8 100644 --- a/disk-utils/fdisk.c +++ b/disk-utils/fdisk.c @@ -589,6 +589,12 @@ void list_disklabel(struct fdisk_context *cxt) free(str); } } + + if (fdisk_table_wrong_order(tb)) { + fputc('\n', stdout); + fdisk_info(cxt, _("Partition table entries are not in disk order.")); + } + fdisk_unref_table(tb); } |