Date: Mon, 22 Mar 2010 01:40:14 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/144948: mdconfig -l doesn't properly increment device number Message-ID: <201003220140.o2M1eEe5094688@www.freebsd.org> Resent-Message-ID: <201003220150.o2M1o3sx002423@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003220140.o2M1eEe5094688>
