bin/144948: mdconfig -l doesn't properly increment device number

Garrett Cooper gcooper at FreeBSD.org
Mon Mar 22 01:50:04 UTC 2010


>Number:         144948
>Category:       bin
>Synopsis:       mdconfig -l doesn't properly increment device number
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 22 01:50:03 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        8-STABLE
>Organization:
Cisco Systems, Inc
>Environment:
FreeBSD garrcoop-fbsd.cisco.com 8.0-STABLE FreeBSD 8.0-STABLE #2: Wed Feb  3 16:57:07 PST 2010     garrcoop at garrcoop-fbsd.cisco.com:/usr/obj/usr/src/sys/LAPPY_X86  i386
>Description:
mdconfig -l always prints out md0 for each md node on 8-STABLE. This has been fixed on 9-CURRENT/amd64, but apparently hasn't been MFCed.

Example:

# uname -a
FreeBSD garrcoop-fbsd.cisco.com 8.0-STABLE FreeBSD 8.0-STABLE #2: Wed Feb  3 16:57:07 PST 2010     garrcoop at garrcoop-fbsd.cisco.com:/usr/obj/usr/src/sys/LAPPY_X86  i386

# mdconfig -s 128
md0
# mdconfig -s 128
md1
# mdconfig -l
md0 md0
# mdconfig -l
md0 md0 md0
# mdconfig -d -u md0
# mdconfig -d -u md0
mdconfig: ioctl(/dev/mdctl): No such file or directory
# mdconfig -d -u md1
# mdconfig -d -u md2
#

Now for 9-CURRENT:

# uname -a
FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #5 r205310: Sat Mar 20 01:32:51 PDT 2010     gcooper at bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
# mdconfig -s 128
md0
# mdconfig -s 128
md1
# mdconfig -l
md0 md1
# mdconfig -d -u md0
# mdconfig -d -u md1
#
>How-To-Repeat:
mdconfig -s 128
mdconfig -s 128
mdconfig -l

`mdconfig -l' will display: `md0 md0'
>Fix:
MFC code from 9-CURRENT which fixes this cosmetic issue.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list