Date: Sat, 27 Aug 2011 18:38:41 GMT From: "Domagoj Smolčić" <rank1seeker@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/160240: rc.d/mdconfig(2) should autoset $_type to vnode, when only -f is passed Message-ID: <201108271838.p7RIcfd4080355@red.freebsd.org> Resent-Message-ID: <201108271840.p7RIeA2a014891@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108271838.p7RIcfd4080355>
