Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Nov 2002 21:00:37 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "Vladimir B.  Grebenschikov" <vova@sw.ru>
Cc:        "current@freebsd.org" <current@FreeBSD.ORG>
Subject:   Re: MD broken in current
Message-ID:  <20021126205027.G3809-100000@gamplex.bde.org>
In-Reply-To: <1038301169.746.6.camel@vbook>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021126205027.G3809-100000>