Re: Mdconfig Problem

From: Bruce Evans <bde_at_zeta.org.au>
Date: Fri, 13 Feb 2004 06:42:37 +1100 (EST)
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
Received on Thu Feb 12 2004 - 10:42:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:42 UTC