From owner-cvs-src@FreeBSD.ORG Fri Jun 6 23:22:48 2008 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 972DD1065673; Fri, 6 Jun 2008 23:22:48 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 96A838FC19; Fri, 6 Jun 2008 23:22:48 +0000 (UTC) (envelope-from marcel@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 m56NMmFx077257; Fri, 6 Jun 2008 23:22:48 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m56NMmk3077256; Fri, 6 Jun 2008 23:22:48 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <200806062322.m56NMmk3077256@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Fri, 6 Jun 2008 22:44:03 +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/geom/misc subr.c subr.h 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: Fri, 06 Jun 2008 23:22:48 -0000 marcel 2008-06-06 22:44:03 UTC FreeBSD src repository Modified files: sbin/geom/misc subr.c subr.h Log: SVN rev 179628 on 2008-06-06 22:44:03Z by marcel Add two support functions: o gctl_delete_param() -- intended for parameters that are consumed by geom(8) itself and which should not be passed to the kernel. o gctl_has_param() -- intended to check if optional parameters are present. Both are needed by gpart(8) to process the optional parameter for writing bootcode to a partition (as part of the bootcode verb). However, the kernel is itself not involved in this matter and the parameter needs to be removed from the request destined for the kernel. Revision Changes Path 1.8 +44 -0 src/sbin/geom/misc/subr.c 1.9 +3 -0 src/sbin/geom/misc/subr.h