diff options
author | Karel Zak | 2012-03-20 11:13:28 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-20 11:18:54 +0100 |
commit | 96f3eef55e6dab4249eee4e57fba2bccb373c866 (patch) | |
tree | 89e370ddac758842d4740cdd16c32e8e9ba50e64 /fdisk/fdisk.c | |
parent | misc: clenaup SIZE columns in lsblk and findmnt (diff) | |
download | kernel-qcow2-util-linux-96f3eef55e6dab4249eee4e57fba2bccb373c866.tar.gz kernel-qcow2-util-linux-96f3eef55e6dab4249eee4e57fba2bccb373c866.tar.xz kernel-qcow2-util-linux-96f3eef55e6dab4249eee4e57fba2bccb373c866.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r-- | fdisk/fdisk.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index 66c5d18e8..8893a0174 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); } |