From owner-cvs-all@FreeBSD.ORG Wed Mar 10 00:49:09 2004 Return-Path: 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 25D8F16A4CE; Wed, 10 Mar 2004 00:49:09 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D25843D2D; Wed, 10 Mar 2004 00:49:09 -0800 (PST) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i2A8n8Ge088698; Wed, 10 Mar 2004 00:49:08 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i2A8n8VQ088697; Wed, 10 Mar 2004 00:49:08 -0800 (PST) (envelope-from phk) Message-Id: <200403100849.i2A8n8VQ088697@repoman.freebsd.org> From: Poul-Henning Kamp Date: Wed, 10 Mar 2004 00:49:08 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/geom geom.h geom_dump.c geom_event.c geom_int.h geom_subr.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2004 08:49:09 -0000 phk 2004/03/10 00:49:08 PST FreeBSD src repository Modified files: sys/geom geom.h geom_dump.c geom_event.c geom_int.h geom_subr.c Log: Rearrange some of the GEOM debugging tools to be more structured. Retire g_sanity() and corresponding debugflag (0x8) Retire g_{stall,release}_events(). Under #ifdef DIAGNOSTIC: Make g_valid_obj() an official function and have it return an an non-zero integer which indicates the kind of object when found. Implement G_VALID_{CLASS,GEOM,CONSUMER,PROVIDER}() macros based on g_valid_obj(). Sprinkle calls to these macros liberally over the infrastructure. Always check that we do not free a live object. Revision Changes Path 1.81 +22 -8 src/sys/geom/geom.h 1.31 +0 -1 src/sys/geom/geom_dump.c 1.49 +6 -21 src/sys/geom/geom_event.c 1.27 +1 -3 src/sys/geom/geom_int.h 1.73 +42 -57 src/sys/geom/geom_subr.c