From 96f3eef55e6dab4249eee4e57fba2bccb373c866 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 20 Mar 2012 11:13:28 +0100 Subject: [PATCH] fdisk: don't print confusing warning on non-partitioned disks Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=740163 Signed-off-by: Karel Zak --- fdisk/fdisk.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 66c5d18e80..8893a01749 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -2785,10 +2785,8 @@ print_partition_table_from_option(char *device) if (gb > 0) { /* I/O error */ } else if (gb < 0) { /* no DOS signature */ list_disk_geometry(); - if (disklabel != AIX_LABEL && disklabel != MAC_LABEL && btrydev(device) < 0) - fprintf(stderr, - _("Disk %s doesn't contain a valid " - "partition table\n"), device); + if (disklabel != AIX_LABEL && disklabel != MAC_LABEL) + btrydev(device); } else { list_table(0); } -- 2.47.3