bin/144300: mdconfig -{d,l}n doesn't work

Garrett Cooper gcooper at
Thu Feb 25 21:10:02 UTC 2010

>Number:         144300
>Category:       bin
>Synopsis:       mdconfig -{d,l}n doesn't work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 25 21:10:01 UTC 2010
>Originator:     Garrett Cooper
>Release:        8-RELEASE / 9-CURRENT
Cisco Systems, Inc
The mdconfig(1) implies that -n will squelch `md' prefixing with any mdconfig output...

     -n      When printing md device names, print only the unit number without
             the md prefix.

.. but that isn't the case:

# mdconfig -ln
# uname -a
FreeBSD 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Feb 18 12:19:04 PST 2010     root at  i386

1. The -n value only appears to be in use with the -a option (which doesn't make a lot of sense to me, but I dunno...).
2. There appears to be a problem with the default n_flag setting (it is set to random stack data unless specified on the command line), but even after fixing that, md is still output -- I didn't really want to waste cycles chasing down the culprit right now.

This issue is present in the RELENG_8 copy of FreeBSD as well.
dd if=/dev/zero conv=sparse of=foo
mdconfig -a -t vnode -u 1 -f foo
mdconfig -l -n


More information about the freebsd-bugs mailing list