From owner-cvs-src-old@FreeBSD.ORG Sun Aug 16 21:27:55 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE7801065697 for ; Sun, 16 Aug 2009 21:27:55 +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 BCE398FC62 for ; Sun, 16 Aug 2009 21:27:55 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7GLRttk032151 for ; Sun, 16 Aug 2009 21:27:55 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7GLRt1u032150 for cvs-src-old@freebsd.org; Sun, 16 Aug 2009 21:27:55 GMT (envelope-from marcel@repoman.freebsd.org) Message-Id: <200908162127.n7GLRt1u032150@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to marcel@repoman.freebsd.org using -f From: Marcel Moolenaar Date: Sun, 16 Aug 2009 21:27:35 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/geom/class/part geom_part.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Aug 2009 21:27:55 -0000 marcel 2009-08-16 21:27:35 UTC FreeBSD src repository Modified files: sbin/geom/class/part geom_part.c Log: SVN rev 196278 on 2009-08-16 21:27:35Z by marcel Emit a proper error message instead of dumping core when 1) GEOM_PART does not exist in the kernel, and 2) the GEOM in question does not exist. Additionally abort in case of programming errors that result in neither the class nor geom not being present in the gctl request. Submitted by: "Andrey V. Elsukov" Approved by: re (kib) Revision Changes Path 1.21 +14 -2 src/sbin/geom/class/part/geom_part.c