From owner-freebsd-current Sun Jan 26 23: 4: 5 2003 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 7E97637B401; Sun, 26 Jan 2003 23:04:04 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E13C43E4A; Sun, 26 Jan 2003 23:04:03 -0800 (PST) (envelope-from keramida@freebsd.org) Received: from gothmog.gr (patr530-a083.otenet.gr [212.205.215.83]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0R73rBb003613; Mon, 27 Jan 2003 09:03:55 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0R73pB6000658; Mon, 27 Jan 2003 09:03:51 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0R73n0s000657; Mon, 27 Jan 2003 09:03:49 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 27 Jan 2003 09:03:49 +0200 From: Giorgos Keramidas To: freebsd-current@freebsd.org Cc: phk@freebsd.org Subject: mdconfig -l broken after /sys/dev/md/md.c rev 1.77 Message-ID: <20030127070349.GA590@gothmog.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG mdconfig -l stopped working in -current after revision 1.76 of md.c. I just reverted src/sys/dev/md/md.c to revision 1.76 and removed M_WAITOK to let me build a kernel with that version of md.c. Now mdconfig correctly lists the open md devices. I'm not sure if I understand how disks work, but it seems that mdconfig -l uses kern.disks to list the currently configured md devices. kern.disks seems to depend on disk_create() being called, and the current version of md.c doesn't call disk_create() when GEOM is enabled. I'm afraid I don't know how to fix this, but I hope someone more acquainted with kernel code and disks in general can do it(?) - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message