From owner-freebsd-stable@FreeBSD.ORG Sat Apr 28 19:41:04 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 395DF16A401 for ; Sat, 28 Apr 2007 19:41:04 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 1FBAB13C4AD for ; Sat, 28 Apr 2007 19:41:04 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 03DBE1A4DA8; Sat, 28 Apr 2007 12:41:33 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 67E1E513DD; Sat, 28 Apr 2007 15:41:03 -0400 (EDT) Date: Sat, 28 Apr 2007 15:41:03 -0400 From: Kris Kennaway To: Pieter de Goeje Message-ID: <20070428194103.GA96334@xor.obsecurity.org> References: <46335555.7090704@quip.cz> <200704281634.44839.pieter@degoeje.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <200704281634.44839.pieter@degoeje.nl> User-Agent: Mutt/1.4.2.2i Cc: freebsd-stable@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: bug in mdconfig -l (does not list all devices) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Apr 2007 19:41:04 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Apr 28, 2007 at 04:34:44PM +0200, Pieter de Goeje wrote: > On Saturday 28 April 2007, Miroslav Lachman wrote: > > Is it a bug or is it a desired feature, that mdconfig -l doesn't list > > all devices, but only last 95 devices? > > > > root@grimm2 ~/# mdconfig -l > > md545 md546 md547 md548 md549 md550 md551 md552 md553 md554 md555 md556 > > md557 md558 md559 md560 md561 md562 md563 md564 md565 md566 md567 md568 > > md569 md570 md571 md572 md573 md574 md575 md576 md577 md578 md579 md580 > > md581 md582 md583 md584 md585 md586 md587 md588 md589 md590 md591 md592 > > md593 md594 md595 md596 md597 md598 md599 md600 md601 md602 md603 md604 > > md605 md606 md607 md608 md609 md610 md611 md612 md613 md614 md615 md616 > > md617 md618 md619 md620 md621 md622 md623 md624 md625 md626 md627 md628 > > md629 md630 md631 md632 md633 md634 md635 md636 md637 md638 md639 > > > > There are 640 devices, but only 95 shown in the list. > > > > root@grimm2 ~/# ls /dev/md*[^a-z] | wc -l > > 640 > > > > So following code doesn't work as I expect > > > > for device in `mdconfig -l` > > do > > echo "destroying $device" > > mdconfig -d -u $device > > done > > > > > > FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:41:06 UTC 2007 > > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 > > > > Can somebody test it on STABLE / CURRENT? > It works correctly on current but fails on stable. On current it just has a different bug :) If you have hundreds of md devices then mdconfig -l lists no devices. Anyway it is probably just a simple MFC to fix, so why not find out who committed the change to current and ask them about it? Kris --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGM6NPWry0BWjoQKURAtqnAKCAKMk8JADVoMEyaRvo6etHFiMWswCfboj5 J/j8POxo4OnI9lkEILuezZ4= =zSee -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--