bug in mdconfig -l (does not list all devices)

Miroslav Lachman 000.fbsd at quip.cz
Sat Apr 28 14:08:27 UTC 2007


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?


Miroslav Lachman


More information about the freebsd-stable mailing list