diff options
author | Francesco Cosoleto | 2011-05-10 14:13:14 +0200 |
---|---|---|
committer | Karel Zak | 2011-05-10 14:13:14 +0200 |
commit | 11187bfadd5876561eb4fe52b0a22ce84fc12b28 (patch) | |
tree | a1513016cbf2e61109b667c74ce0c4f5e616fa80 /fdisk | |
parent | fdisk: quit from partition type dialog after invalid response (diff) | |
download | kernel-qcow2-util-linux-11187bfadd5876561eb4fe52b0a22ce84fc12b28.tar.gz kernel-qcow2-util-linux-11187bfadd5876561eb4fe52b0a22ce84fc12b28.tar.xz kernel-qcow2-util-linux-11187bfadd5876561eb4fe52b0a22ce84fc12b28.zip |
fdisk: print logical partition number while adding it
[kzak@redhat.com: - merged two Francesco's patches]
Signed-off-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Diffstat (limited to 'fdisk')
-rw-r--r-- | fdisk/fdisk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index b34b6537d..640fb9dca 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2475,6 +2475,7 @@ add_logical(void) { pe->changed = 1; partitions++; } + printf(_("Adding logical partition %d\n"), partitions); add_partition(partitions - 1, LINUX_NATIVE); } @@ -2522,9 +2523,10 @@ new_partition(void) { } if (!free_primary) { - if (extended_offset) + if (extended_offset) { + printf(_("All primary partitions are in use\n")); add_logical(); - else + } else printf(_("If you want to create more than four partitions, you must replace a\n" "primary partition with an extended partition first.\n")); } else if (partitions >= MAXIMUM_PARTS) { |