From owner-cvs-src@FreeBSD.ORG Fri Apr 7 16:19:49 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org 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 242F616A400; Fri, 7 Apr 2006 16:19:49 +0000 (UTC) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D460743D45; Fri, 7 Apr 2006 16:19:48 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k37GJmhF021232; Fri, 7 Apr 2006 16:19:48 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k37GJmtw021231; Fri, 7 Apr 2006 16:19:48 GMT (envelope-from marcel) Message-Id: <200604071619.k37GJmtw021231@repoman.freebsd.org> From: Marcel Moolenaar Date: Fri, 7 Apr 2006 16:19:48 +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/sys/geom geom.h geom_bsd.c geom_ccd.c geom_ctl.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: Fri, 07 Apr 2006 16:19:49 -0000 marcel 2006-04-07 16:19:48 UTC FreeBSD src repository Modified files: sys/geom geom.h geom_bsd.c geom_ccd.c geom_ctl.c Log: Change gctl_set_param() to return an error instead of setting an error on the request. Add a wrapper, gctl_set_param_err(), that sets the error on the request from the error returned by gctl_set_param() and update current callers of gctl_set_param() to call gctl_set_param_err() instead. This makes gctl_set_param() much more usable in situations where the caller knows better what to do with certain (apparent) error conditions and setting an error on the request is not one of the things that need to be done. Revision Changes Path 1.92 +2 -1 src/sys/geom/geom.h 1.77 +2 -2 src/sys/geom/geom_bsd.c 1.154 +2 -2 src/sys/geom/geom_ccd.c 1.38 +28 -12 src/sys/geom/geom_ctl.c