bug in mdconfig -l (does not list all devices)
Kris Kennaway
kris at obsecurity.org
Sat Apr 28 19:41:04 UTC 2007
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 at 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 at 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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070428/fda53456/attachment.pgp
More information about the freebsd-stable
mailing list