Mdconfig Problem

Bruce Evans bde at zeta.org.au
Thu Feb 12 11:42:51 PST 2004


On Wed, 11 Feb 2004, Dima Dorfman wrote:

> Lawrence Farr <bsd-current at epcdirect.co.uk> wrote:
> > I've got an odd error with mdconfig, a script which has been
> > running on 5.x for months suddenly started giving this error
> >
> > mdconfig -a -t vnode -f /usr/ftp/pub/FreeBSD/5.2-20040211/floppies/kern.flp
> > -u 0
> > mdconfig: ioctl(/dev/mdctl): No such file or directory
>
> An error that starts with "ioctl(/dev/mdctl)" actually refers to an
> error during the processing of the ioctl.  Opening the control device
> is reported with "open(/dev/mdctl)".  The most obvious reason for the
> former to fail with ENOENT is that the file you specified using -f
> does not exist.

Someone should fix them by adding line numbers ;-).

Seriously, it can be hard to determine which of several args passed to
an ioctl caused the problem, and not mentioniong the ioctl name in error
messages doesn't help.

Bruce


More information about the freebsd-current mailing list