bin/144300: mdconfig -{d,l}n doesn't work
Garrett Cooper
gcooper at FreeBSD.org
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Feb 25 21:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Garrett Cooper
>Release: 8-RELEASE / 9-CURRENT
>Organization:
Cisco Systems, Inc
>Environment:
>Description:
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
md1
# uname -a
FreeBSD left4dead.cisco.com 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Thu Feb 18 12:19:04 PST 2010 root at left4dead.cisco.com:/usr/obj/usr/src/sys/LEFT4DEAD 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.
>How-To-Repeat:
dd if=/dev/zero conv=sparse of=foo
mdconfig -a -t vnode -u 1 -f foo
mdconfig -l -n
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list