From owner-cvs-src@FreeBSD.ORG Thu Nov 1 20:51:06 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B260816A418; Thu, 1 Nov 2007 20:51:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8919D13C48D; Thu, 1 Nov 2007 20:51:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lA1Kp5dP014349; Thu, 1 Nov 2007 20:51:05 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lA1Kp5NP014348; Thu, 1 Nov 2007 20:51:05 GMT (envelope-from jhb) Message-Id: <200711012051.lA1Kp5NP014348@repoman.freebsd.org> From: John Baldwin Date: Thu, 1 Nov 2007 20:51:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/gpt gpt.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 20:51:06 -0000 jhb 2007-11-01 20:51:04 UTC FreeBSD src repository Modified files: sbin/gpt gpt.c Log: Don't look for GPT primary and secondary tables on a disk unless we have a valid PMBR. Without this fix, if label a disk with a GPT, then relabel it with an MBR the GPT tables are still present. If you then try to create a GPT with 'gpt create', gpt(8) will fail to open the device because the partitions in the stale GPT overlap with the slices in the MBR. MFC after: 1 week Revision Changes Path 1.18 +10 -4 src/sbin/gpt/gpt.c