From mi@aldan.algebra.com Wed Sep 15 19:44:25 1999
Return-Path: <mi@aldan.algebra.com>
Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190])
	by hub.freebsd.org (Postfix) with ESMTP id 8A88814C4B
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 1999 19:44:23 -0700 (PDT)
	(envelope-from mi@aldan.algebra.com)
Received: from rtfm.newton (rtfm.newton [10.10.0.1])
	by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id WAA67239
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 15 Sep 1999 22:44:22 -0400 (EDT)
Received: (from mi@localhost)
	by rtfm.newton (8.9.3/8.9.1) id WAA01277;
	Wed, 15 Sep 1999 22:44:22 -0400 (EDT)
Message-Id: <199909160244.WAA01277@rtfm.newton>
Date: Wed, 15 Sep 1999 22:44:22 -0400 (EDT)
From: Mikhail Teterin <mi@aldan.algebra.com>
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
X-Send-Pr-Version: 3.2

>Number:         13768
>Category:       bin
>Synopsis:       sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 15 19:50:00 PDT 1999
>Closed-Date:    Fri Jul 20 18:43:20 PDT 2001
>Last-Modified:  Fri Jul 20 18:44:42 PDT 2001
>Originator:     Mikhail Teterin
>Release:        FreeBSD 3.3-RC i386
>Organization:
>Environment:

	Several SCSI compact disks in a machine

>Description:

>How-To-Repeat:

	cd /dev
	rm cd*
	sh MAKEDEV cd1
	ls -l cd*
	brw-r-----  1 root  operator    6,   0 Sep 15 22:37 cd0a
	brw-r-----  1 root  operator    6,   2 Sep 15 22:37 cd0c
	sh MAKEDEV cd5
	ls -l cd*
	brw-r-----  1 root  operator    6,   0 15  22:43 cd0a
	brw-r-----  1 root  operator    6,   2 15  22:43 cd0c
	brw-r-----  1 root  operator    6,   8 15  22:43 cd1a
	brw-r-----  1 root  operator    6,  10 15  22:43 cd1c
	brw-r-----  1 root  operator    6,  16 15  22:43 cd2a
	brw-r-----  1 root  operator    6,  18 15  22:43 cd2c
	brw-r-----  1 root  operator    6,  24 15  22:43 cd3a
	brw-r-----  1 root  operator    6,  26 15  22:43 cd3c
	brw-r-----  1 root  operator    6,  32 15  22:43 cd4a
	brw-r-----  1 root  operator    6,  34 15  22:43 cd4c

>Fix:

>Release-Note:
>Audit-Trail:

From: Ruslan Ermilov <ru@ucb.crimea.ua>
To: Mikhail Teterin <mi@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13768: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
Date: Thu, 16 Sep 1999 10:42:32 +0300

 On Wed, Sep 15, 1999 at 10:44:22PM -0400, Mikhail Teterin wrote:
 > 
 > >Number:         13768
 > >Synopsis:       sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
 > >Severity:       serious
 > >Priority:       high
 
 > >How-To-Repeat:
 > 
 > 	cd /dev
 > 	rm cd*
 > 	sh MAKEDEV cd1
 > 	ls -l cd*
 > 	brw-r-----  1 root  operator    6,   0 Sep 15 22:37 cd0a
 > 	brw-r-----  1 root  operator    6,   2 Sep 15 22:37 cd0c
 > 	sh MAKEDEV cd5
 >	
 By the command above you tell that you have five CD drives on your system.
 
 > 	ls -l cd*
 > 	brw-r-----  1 root  operator    6,   0 15  22:43 cd0a
 > 	brw-r-----  1 root  operator    6,   2 15  22:43 cd0c
 > 	brw-r-----  1 root  operator    6,   8 15  22:43 cd1a
 > 	brw-r-----  1 root  operator    6,  10 15  22:43 cd1c
 > 	brw-r-----  1 root  operator    6,  16 15  22:43 cd2a
 > 	brw-r-----  1 root  operator    6,  18 15  22:43 cd2c
 > 	brw-r-----  1 root  operator    6,  24 15  22:43 cd3a
 > 	brw-r-----  1 root  operator    6,  26 15  22:43 cd3c
 > 	brw-r-----  1 root  operator    6,  32 15  22:43 cd4a
 > 	brw-r-----  1 root  operator    6,  34 15  22:43 cd4c
 > 
 .. and MAKEDEV build devices for all five CDs.
 And it is consistent with `MAKEDEV vtyN', for example.
 So, what (by your opinion) should be fixed?
 
 
 -- 
 Ruslan Ermilov		Sysadmin and DBA of the
 ru@ucb.crimea.ua	United Commercial Bank,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.247.647	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age
 

From: Mikhail Teterin <mi@aldan.algebra.com>
To: Ruslan Ermilov <ru@ucb.crimea.ua>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13768: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
Date: Thu, 16 Sep 1999 19:47:11 -0400 (EDT)

 Ruslan Ermilov once stated:
 
 => 	sh MAKEDEV cd5
 =>	
 =By the  command above  you tell that  you have five  CD drives  on your
 =system.
 
 I thought, that by that command  I request all the devices pertaining to
 the single  physical device be created  -- the 6th CD-ROM  connnected to
 the machine.
 
 => 	ls -l cd*
 => 	brw-r-----  1 root  operator    6,   0 15  22:43 cd0a
 => 	brw-r-----  1 root  operator    6,   2 15  22:43 cd0c
 => 	brw-r-----  1 root  operator    6,   8 15  22:43 cd1a
 => 	brw-r-----  1 root  operator    6,  10 15  22:43 cd1c
 => 	brw-r-----  1 root  operator    6,  16 15  22:43 cd2a
 => 	brw-r-----  1 root  operator    6,  18 15  22:43 cd2c
 => 	brw-r-----  1 root  operator    6,  24 15  22:43 cd3a
 => 	brw-r-----  1 root  operator    6,  26 15  22:43 cd3c
 => 	brw-r-----  1 root  operator    6,  32 15  22:43 cd4a
 => 	brw-r-----  1 root  operator    6,  34 15  22:43 cd4c
 
 =.. and MAKEDEV build devices for all five CDs.
 
 =And it is consistent with `MAKEDEV vtyN', for example.
 
 It is inconsistent with daN*, then.
 
 =So, what (by your opinion) should be fixed?
 
 In my opinion, there has to be cdNa and cdNc, rcdNa and rcdNc after
 ``MAKEDEV cdN''.
 
 	Yours,
 
 		-mi
 

From: Chris Costello <chris@calldei.com>
To: Mikhail Teterin <mi@aldan.algebra.com>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13768: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
Date: Thu, 16 Sep 1999 20:11:46 -0500

 On Wed, Sep 15, 1999, Mikhail Teterin wrote:
 > 	sh MAKEDEV cd5
 > 	ls -l cd*
 > 	brw-r-----  1 root  operator    6,   0 15  22:43 cd0a
 > 	brw-r-----  1 root  operator    6,   2 15  22:43 cd0c
 > 	brw-r-----  1 root  operator    6,   8 15  22:43 cd1a
 > 	brw-r-----  1 root  operator    6,  10 15  22:43 cd1c
 > 	brw-r-----  1 root  operator    6,  16 15  22:43 cd2a
 > 	brw-r-----  1 root  operator    6,  18 15  22:43 cd2c
 > 	brw-r-----  1 root  operator    6,  24 15  22:43 cd3a
 > 	brw-r-----  1 root  operator    6,  26 15  22:43 cd3c
 > 	brw-r-----  1 root  operator    6,  32 15  22:43 cd4a
 > 	brw-r-----  1 root  operator    6,  34 15  22:43 cd4c
 
    Please count.  You have 5 CDROMs on your system; there are 5
 devices.  cd0, cd1, cd2, cd3, cd4.
 
 -- 
 |Chris Costello <chris@calldei.com>
 |Reality's the only obstacle to happiness.
 `-----------------------------------------
 

From: Mikhail Teterin <mi@aldan.algebra.com>
To: chris@calldei.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/13768: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
Date: Thu, 16 Sep 1999 21:31:17 -0400 (EDT)

 Chris Costello once stated:
 
 =On Wed, Sep 15, 1999, Mikhail Teterin wrote:
 => 	sh MAKEDEV cd5
 => 	ls -l cd*
 => 	brw-r-----  1 root  operator    6,   0 15 ___ 22:43 cd0a
 => 	brw-r-----  1 root  operator    6,   2 15 ___ 22:43 cd0c
 => 	brw-r-----  1 root  operator    6,   8 15 ___ 22:43 cd1a
 => 	brw-r-----  1 root  operator    6,  10 15 ___ 22:43 cd1c
 => 	brw-r-----  1 root  operator    6,  16 15 ___ 22:43 cd2a
 => 	brw-r-----  1 root  operator    6,  18 15 ___ 22:43 cd2c
 => 	brw-r-----  1 root  operator    6,  24 15 ___ 22:43 cd3a
 => 	brw-r-----  1 root  operator    6,  26 15 ___ 22:43 cd3c
 => 	brw-r-----  1 root  operator    6,  32 15 ___ 22:43 cd4a
 => 	brw-r-----  1 root  operator    6,  34 15 ___ 22:43 cd4c
 =
 =   Please count.  You have 5 CDROMs on your system; there are 5
 =devices.  cd0, cd1, cd2, cd3, cd4.
 
 I'm not asking  for 5 CD-ROM devices.  I'm asking for ONE --  cd5. I now
 understand, that there  are two different semantics involved.  One -- in
 case  of vty,  cd --  treat the  digit as  the total  number of  similar
 devices desired.
 
 The other -- in case of da, wd  -- treat the digit as part of the device
 name and create the corresponding devices ONLY.
 
 My problems with this:
 
 	1. The two semantics are inconsistent with each other -- perhaps,
 	   for historical reasons?
 	2. In case of CD-ROMs, the second (a'la da and wd) semantics
 	   seems more sensible to me.
 
 Yours,
 
 	-mi
 
State-Changed-From-To: open->closed 
State-Changed-By: mike 
State-Changed-When: Fri Jul 20 18:43:20 PDT 2001 
State-Changed-Why:  

If your problem hasn't been fixed by now, it will be when FreeBSD 
5.0 is released (which uses devfs to handle devices). 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=13768 
>Unformatted:
