From owner-cvs-all Sat Oct 19 10:56:14 2002 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 04CBC37B404; Sat, 19 Oct 2002 10:56:06 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6D7F43EB1; Sat, 19 Oct 2002 10:56:03 -0700 (PDT) (envelope-from sam@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id g9JHthmj069334; Sat, 19 Oct 2002 10:55:44 -0700 (PDT) (envelope-from sam@repoman.freebsd.org) Received: (from sam@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id g9JGdS5n061115; Sat, 19 Oct 2002 09:39:28 -0700 (PDT) Message-Id: <200210191639.g9JGdS5n061115@repoman.freebsd.org> From: Sam Leffler Date: Sat, 19 Oct 2002 09:39:28 -0700 (PDT) To: cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: cvs commit: src/lib/libdisk disk.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sam 2002/10/19 09:39:28 PDT Modified files: lib/libdisk disk.c Log: o since you can't use DIOCGDINFO and DIOCGSLICEINFO on drive nodes with geom, get the xml configuration for the devices and "parse" the information to get what's needed o replace #ifdef DEBUG constructs with DPRINT/DPRINTX to make the code more readable Note the xml "parser" is very very hackish and should be replaced with a real one. This one was done to be very small and special-purpose; don't think about copying it elsewhere. Approved by: phk Revision Changes Path 1.82 +456 -62 src/lib/libdisk/disk.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message