From owner-cvs-all Sun Dec 1 17:46: 6 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B864937B401; Sun, 1 Dec 2002 17:46:05 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 784B043E4A; Sun, 1 Dec 2002 17:46:05 -0800 (PST) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gB21g3mV096546; Sun, 1 Dec 2002 17:42:03 -0800 (PST) (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gB21g3P3096545; Sun, 1 Dec 2002 17:42:03 -0800 (PST) Message-Id: <200212020142.gB21g3P3096545@repoman.freebsd.org> From: Marcel Moolenaar Date: Sun, 1 Dec 2002 17:42:03 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/gpt create.c gpt.c map.h migrate.c show.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG marcel 2002/12/01 17:42:03 PST Modified files: sbin/gpt create.c gpt.c map.h migrate.c show.c Log: o Newer EFI implementations require that a GPT is preceeded by a PMBR. Make sure the create command creates a PMBR as well (if not already present). o When parsing the MBR, explicitly check for a PMBR and create a PMBR map node if one is found. o When parsing the MBR, recurse to handle extended partitions. This allows us to flatten nested MBRs when migrating to a GPT. o Have the migrate command bail out if it encounters a partition it doesn't know how to migrate. This avoids data loss. o Change the output of the show command so that the UUIDs of the GPT partitions fit on the same line. o Show when partitions are extended partitions and add the PMBR type. Approved by: re (blanket) Revision Changes Path 1.5 +35 -0 src/sbin/gpt/create.c 1.6 +85 -43 src/sbin/gpt/gpt.c 1.3 +1 -0 src/sbin/gpt/map.h 1.5 +9 -4 src/sbin/gpt/migrate.c 1.5 +23 -8 src/sbin/gpt/show.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message