From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 16 00:04:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B548337B401; Wed, 16 Apr 2003 00:04:44 -0700 (PDT) Received: from birch.ripe.net (birch.ripe.net [193.0.1.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id C866243FE1; Wed, 16 Apr 2003 00:04:43 -0700 (PDT) (envelope-from marks@ripe.net) Received: from laptop.6bone.nl (cow.ripe.net [193.0.1.239]) by birch.ripe.net (8.12.9/8.11.6) with SMTP id h3G74hSs019202; Wed, 16 Apr 2003 09:04:43 +0200 Received: (nullmailer pid 1112 invoked by uid 1000); Wed, 16 Apr 2003 06:01:00 -0000 Date: Wed, 16 Apr 2003 08:01:00 +0200 From: Mark Santcroos To: phk@freebsd.org Message-ID: <20030416060100.GA1048@laptop.6bone.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Handles: MS6-6BONE, MS18417-RIPE cc: hackers@freebsd.org Subject: ioctl's in md X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2003 07:04:45 -0000 Hi Poul-Henning, Now that md is geomized [is that the correct term ;)], how can I add an ioctl handler for a created md device? As there isn't simply a make_dev(), and I have to go through the geom system, I wonder if it is possible at all. The reason for this is that I want to make a CDROM type, similar to the VNODE type, but that handles cdrom ioctl's. (Which is necesarry to make vmware2 boot from a "cdrom"). Mark ps. I tried to find the answer in sys/dev/ata/, there I saw that only atapi-cd and atapi-tape do make_dev()'s. Is that because they need ioctl's or is that totally unrelated? -- Mark Santcroos RIPE Network Coordination Centre http://www.ripe.net/home/mark/ New Projects Group/TTM