From owner-freebsd-current Tue Nov 26 1:47:22 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6013237B401 for ; Tue, 26 Nov 2002 01:47:21 -0800 (PST) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A67443E4A for ; Tue, 26 Nov 2002 01:47:20 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id UAA10616; Tue, 26 Nov 2002 20:47:04 +1100 Date: Tue, 26 Nov 2002 21:00:37 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "Vladimir B. Grebenschikov" Cc: "current@freebsd.org" Subject: Re: MD broken in current In-Reply-To: <1038301169.746.6.camel@vbook> Message-ID: <20021126205027.G3809-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 26 Nov 2002, Vladimir B. Grebenschikov wrote: > # mdconfig -a -t vnode ./bootimg.bin > mdconfig: ioctl(/dev/mdctl): Bad address This should be ... "-t vnode -f ./bootimg.bin". The bug is just low quality option parsing. ./bootimg.bin is garbage when it is not preceded by -f, and garbage args are silently ignored. A "-f file" is required to specify the vnode for "-t vnode" but neither the man page synopsis nor the usage message are detailed enough to say this. When no file arg is specified, the file arg is NULL and this causes the "Bad address" error. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message