Bug 160240 - rc.d/mdconfig and mdconfig2 should autoset $_type to vnode, when only -f is passed
Summary: rc.d/mdconfig and mdconfig2 should autoset $_type to vnode, when only -f is p...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2011-08-27 19:40 UTC by Domagoj Smolčić
Modified: 2017-12-31 22:32 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Domagoj Smolčić 2011-08-27 19:40:10 UTC
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:
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).
could not open /usr/my.img
No such file or directory
Creating md0 device failed, moving on.
Mounting local file systems:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2011-08-27 19:43:43 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-rc

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:29 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped