Date: Sat, 28 Apr 2007 15:41:03 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Pieter de Goeje <pieter@degoeje.nl> Cc: freebsd-stable@freebsd.org, Miroslav Lachman <000.fbsd@quip.cz> Subject: Re: bug in mdconfig -l (does not list all devices) Message-ID: <20070428194103.GA96334@xor.obsecurity.org> In-Reply-To: <200704281634.44839.pieter@degoeje.nl> References: <46335555.7090704@quip.cz> <200704281634.44839.pieter@degoeje.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070428194103.GA96334>