]> err.no Git - util-linux/commitdiff
fdisk: don't check for GPT when asked for disk size only
authorKarel Zak <kzak@redhat.com>
Tue, 19 Aug 2008 09:21:09 +0000 (11:21 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Aug 2008 09:11:44 +0000 (11:11 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c

index 58b8bbdefb1c23a3ddcbef26baf2cb2ab362bf03..0559717d8b4b47d269a4b840f72308cff8bb9e07 100644 (file)
@@ -2665,7 +2665,6 @@ main(int argc, char **argv) {
 
                for (j = optind; j < argc; j++) {
                        disk_device = argv[j];
-                       gpt_warning(disk_device);
                        if ((fd = open(disk_device, type_open)) < 0)
                                fatal(unable_to_open);
                        if (blkdev_get_sectors(fd, &size) == -1)