[PATCH 1/2] fdisk: print a message in case of logical partition type autoselection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This message is similar to the other one used when primary partition
type is autoselected.

Signed-off-by: Francesco Cosoleto <cosoleto@xxxxxxxxx>
---
 fdisk/fdisk.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c
index b34b653..10ff411 100644
--- a/fdisk/fdisk.c
+++ b/fdisk/fdisk.c
@@ -2522,9 +2522,11 @@ new_partition(void) {
 	}
 
 	if (!free_primary) {
-		if (extended_offset)
+		if (extended_offset) {
+			printf(_("All primary partitions are in use\n"));
+			printf(_("Adding a logical partition\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) {
-- 
1.7.3.4

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux