From owner-freebsd-current@FreeBSD.ORG Tue Mar 25 17:39:12 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71D0337B401; Tue, 25 Mar 2003 17:39:12 -0800 (PST) Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 319B843F3F; Tue, 25 Mar 2003 17:39:11 -0800 (PST) (envelope-from ken@panzer.kdm.org) Received: from panzer.kdm.org (localhost [127.0.0.1]) by panzer.kdm.org (8.12.6/8.12.5) with ESMTP id h2Q1d68U025791; Tue, 25 Mar 2003 18:39:06 -0700 (MST) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.12.6/8.12.5/Submit) id h2Q1d5oC025790; Tue, 25 Mar 2003 18:39:05 -0700 (MST) (envelope-from ken) Date: Tue, 25 Mar 2003 18:39:05 -0700 From: "Kenneth D. Merry" To: "Greg 'groggy' Lehey" Message-ID: <20030325183905.A25690@panzer.kdm.org> References: <20030325184134.E77254@beagle.fokus.fraunhofer.de> <20030326003652.GB2959@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030326003652.GB2959@wantadilla.lemis.com>; from grog@FreeBSD.ORG on Wed, Mar 26, 2003 at 11:06:52AM +1030 X-Spam-Status: No, hits=-30.9 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@FreeBSD.ORG Subject: [Re: vinum broken by devstat changes? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 01:39:14 -0000 X-List-Received-Date: Wed, 26 Mar 2003 01:39:14 -0000 On Wed, Mar 26, 2003 at 11:06:52 +1030, Greg 'groggy' Lehey wrote: > On Tuesday, 25 March 2003 at 18:44:03 +0100, Hartmut Brandt wrote: > > > > Hi, > > > > when calling 'vinum start' it responds with > > > > usage: read drive [drive ...] > > > > from looking at the code, it appears that it cannot find the disk drives > > to read the configuration from. > > > > vinum read da0 da1 > > > > just works. > > > > So what's the problem? (kernel and user land from today) > > Check vinum(8), function vinum_start (in > /usr/src/sbin/vinum/commands.c). It's possible that the changes have > broken some of the tests, probably of stat->device_type. I can't > think it's too difficult to fix. disk_create() now creates the devstat entry for disks, but defaults everything to be a direct access (with no interface type). I've got patches in progress to fix that, but it looks like things should work with the current state of affairs. Have you rebuilt world? It looks like vinum(8) doesn't include a call to devstat_checkversion(), so it's possible you've got a version mismatch but no way to know it. Ken -- Kenneth Merry ken@kdm.org