From owner-freebsd-bugs@FreeBSD.ORG Sat Aug 27 18:40:11 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 470F21065673 for ; Sat, 27 Aug 2011 18:40:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0B2358FC14 for ; Sat, 27 Aug 2011 18:40:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7RIeAQH014892 for ; Sat, 27 Aug 2011 18:40:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7RIeA2a014891; Sat, 27 Aug 2011 18:40:10 GMT (envelope-from gnats) Resent-Date: Sat, 27 Aug 2011 18:40:10 GMT Resent-Message-Id: <201108271840.p7RIeA2a014891@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Domagoj Smolčić" Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 047C5106564A for ; Sat, 27 Aug 2011 18:38:42 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id E86D58FC08 for ; Sat, 27 Aug 2011 18:38:41 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7RIcfc6080356 for ; Sat, 27 Aug 2011 18:38:41 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p7RIcfd4080355; Sat, 27 Aug 2011 18:38:41 GMT (envelope-from nobody) Message-Id: <201108271838.p7RIcfd4080355@red.freebsd.org> Date: Sat, 27 Aug 2011 18:38:41 GMT From: "Domagoj Smolčić" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/160240: rc.d/mdconfig(2) should autoset $_type to vnode, when only -f is passed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 18:40:11 -0000 >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: