From owner-cvs-all Thu Jan 30 12:34:25 2003 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 2D71A37B401; Thu, 30 Jan 2003 12:34:24 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA16C43F43; Thu, 30 Jan 2003 12:34:23 -0800 (PST) (envelope-from phk@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 h0UKYNbv069665; Thu, 30 Jan 2003 12:34:23 -0800 (PST) (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0UKYN2i069664; Thu, 30 Jan 2003 12:34:23 -0800 (PST) Message-Id: <200301302034.h0UKYN2i069664@repoman.freebsd.org> From: Poul-Henning Kamp Date: Thu, 30 Jan 2003 12:34:23 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/geom geom_disk.c src/sys/sys disk.h 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 phk 2003/01/30 12:34:23 PST Modified files: sys/geom geom_disk.c sys/sys disk.h Log: Add some agility to the disk_create() API: Make passing the methods in a cdevsw structure optional. Move "CANFREE" and "NOGIANT" flags into struct disk instead of the cdevsw which may or may not be there. Rename CANFREE to CANDELETE to match BIO_DELETE operation. Add "OPEN" flag so drivers don't have to provide open/close methods just to maintain such a flag. Add temporary stopgap include of to until the files which have them in the other order are fixed. Add KASSERTS to make sure we don't get fed too many NULL pointers. Clear our geom's softc pointer before we wither. Revision Changes Path 1.41 +48 -24 src/sys/geom/geom_disk.c 1.31 +15 -1 src/sys/sys/disk.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message