Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 May 2000 08:42:42 +0300
From:      Maxim Sobolev <sobomax@altavista.net>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        current@FreeBSD.ORG
Subject:   Re: Small MAKEDEV bug
Message-ID:  <39150252.1BCB4EBE@altavista.net>
References:  <Pine.BSF.4.21.0005070543520.8955-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:

> On Sat, 6 May 2000, Maxim Sobolev wrote:
>
> > I've just noticed that "sh MAKEDEV acd1" doesn't produce node for acd1 due to
> > incorrect comparasion in the "while" loop. This affecting both 4.0-STABLE and
> > 5.0-CURRENT. With this message I'm attaching short patch which should solve
> > this little problem.
>
> This is the intended behaviour.  "sh MAKEDEV acdN" is supposed to create
> N acd devices, numbered from 0 to N-1.  This broken behaviour was introduced
> for cd*, mcd* and scd* in rev.1.171.  It has since spread to acd*.  Other
> types of disks are handled correctly.

How broken behaviour could be "intended"? It is unclear why *cd* devices should be
different from all others types of disk devices. Users usually being confused when
dealing with special cases like that. I think that there will be no problem if it
would create N+1 devices at least until someone will reimplement it correctly.

-Maxim



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?39150252.1BCB4EBE>