diff options
author | Karel Zak | 2016-02-03 13:40:25 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-03 13:40:25 +0100 |
commit | 4afb337e0016233d30b83327d45a9384e48a5af7 (patch) | |
tree | 2d26fee1a000452250ecf5f6e4bca0e290bee06c /disk-utils/fdisk-menu.c | |
parent | sfdisk: make --quiet really quiet (diff) | |
download | kernel-qcow2-util-linux-4afb337e0016233d30b83327d45a9384e48a5af7.tar.gz kernel-qcow2-util-linux-4afb337e0016233d30b83327d45a9384e48a5af7.tar.xz kernel-qcow2-util-linux-4afb337e0016233d30b83327d45a9384e48a5af7.zip |
fdisk: make 'f' command more verbose
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/fdisk-menu.c')
-rw-r--r-- | disk-utils/fdisk-menu.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/disk-utils/fdisk-menu.c b/disk-utils/fdisk-menu.c index 81bdb31c8..043e9ab65 100644 --- a/disk-utils/fdisk-menu.c +++ b/disk-utils/fdisk-menu.c @@ -577,6 +577,10 @@ static int generic_menu_cb(struct fdisk_context **cxt0, break; case 'f': rc = fdisk_reorder_partitions(cxt); + if (rc) + fdisk_warnx(cxt, _("Failed to fix partitions order."), n + 1); + else + fdisk_info(cxt, _("Partitions order fixed.")); break; case 'r': rc = fdisk_enable_details(cxt, 0); |