Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Sep 1999 18:40:02 -0700 (PDT)
From:      Mikhail Teterin <mi@aldan.algebra.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/13768: sh MAKEDEV cdN creates all cd(N-1)-devices for all N>0
Message-ID:  <199909170140.SAA36530@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/13768; it has been noted by GNATS.

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
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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