diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-27 15:01:04 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2016-12-27 15:01:04 +0000 |
commit | e5d305d02dc871742fb854078de98b8d3d3f7639 (patch) | |
tree | 17d9d0a7edbb566aa0d25dece737086ff6c9ce41 /sbin/fdisk/fdisk.c | |
parent | 19bf9dba894f93e3c4508a453e64bf6ffbb6d273 (diff) |
The "disk too large" and "only LBA values saved" messages are more
often confusing than useful these days. Stop emitting them.
Prompted by bugs@ report of the 8TB disk travails of Jiri.
ok deraadt@ tom@
Diffstat (limited to 'sbin/fdisk/fdisk.c')
-rw-r--r-- | sbin/fdisk/fdisk.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c index eb0fbc89f17..6c3a51c4399 100644 --- a/sbin/fdisk/fdisk.c +++ b/sbin/fdisk/fdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fdisk.c,v 1.101 2016/06/25 17:03:22 tb Exp $ */ +/* $OpenBSD: fdisk.c,v 1.102 2016/12/27 15:01:03 krw Exp $ */ /* * Copyright (c) 1997 Tobias Weingartner @@ -178,12 +178,6 @@ main(int argc, char *argv[]) if (MBR_protective_mbr(&mbr) == 0) GPT_get_gpt(0); - if (letoh64(gh.gh_sig) != GPTSIGNATURE) { - if (DL_GETDSIZE(&dl) > disk.size) - warnx("disk too large (%llu sectors). size truncated.", - (unsigned long long)DL_GETDSIZE(&dl)); - } - if (!(i_flag || u_flag || e_flag)) { if (pledge("stdio", NULL) == -1) err(1, "pledge"); |