From owner-cvs-src@FreeBSD.ORG Sat Aug 7 07:41:38 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46DAC16A4CE; Sat, 7 Aug 2004 07:41:38 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FB2643D39; Sat, 7 Aug 2004 07:41:38 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i777fcM7051936; Sat, 7 Aug 2004 07:41:38 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i777fcQk051935; Sat, 7 Aug 2004 07:41:38 GMT (envelope-from marcel) Message-Id: <200408070741.i777fcQk051935@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 7 Aug 2004 07:41:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/gpt Makefile gpt.c gpt.h map.h remove.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 07 Aug 2004 07:41:38 -0000 marcel 2004-08-07 07:41:38 UTC FreeBSD src repository Modified files: sbin/gpt Makefile gpt.c gpt.h map.h Added files: sbin/gpt remove.c Log: Implement a remove command. The remove command iterates the GPT partitions and removes any that matches the pre-conditions. The options are the same for the add command and are used to select the partitions to remove. Currently the remove command without any options deletes all GPT partitions. This is rather harmful and will need anti-footshooting measures. Revision Changes Path 1.6 +2 -1 src/sbin/gpt/Makefile 1.8 +1 -1 src/sbin/gpt/gpt.c 1.5 +1 -0 src/sbin/gpt/gpt.h 1.5 +1 -1 src/sbin/gpt/map.h 1.1 +212 -0 src/sbin/gpt/remove.c (new)