misc/160240: rc.d/mdconfig(2) should autoset $_type to vnode, when only -f is passed

Domagoj Smolčić rank1seeker at gmail.com
Sat Aug 27 18:40:11 UTC 2011


>Number:         160240
>Category:       misc
>Synopsis:       rc.d/mdconfig(2) should autoset $_type to vnode, when only -f is passed
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 27 18:40:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Domagoj Smolčić
>Release:        8.2
>Organization:
>Environment:
FreeBSD blackhole.starforce.biz 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Wed Jun  1 16:27:50 CEST 2011     root at blackhole.starforce.biz:/usr/obj/usr/src/sys/BLACKHOLE  i386
>Description:
If mdconfig bin, is now smart enough to load vnode images, via:
# mdconfig -f /usr/my.img
As options '-a' and '-t vnode' are implied, instead old:
# mdconfig -a -t vnode -f /usr/my.img

Then why scripts:
--
/etc/rc.d/mdconfig
/etc/rc.d/mdconfig2
--
Aren't aware of this?


This would fail: (rc.conf)
mdconfig_md0="-f /usr/my.img"

Because "${_type}" variable gets value '-f'

dmesg: ()
--
Creating md0 device (-f).
mdconfig:
could not open /usr/my.img
:
No such file or directory
Creating md0 device failed, moving on.
Mounting local file systems:
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list